summaryrefslogtreecommitdiff
path: root/src/map/map.h
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-08 18:55:46 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-08 18:55:46 +0000
commit13bd7f95bf5efb4e4acf274baf20636682ea4b58 (patch)
tree52be8506db2e6b18b44caf403a9a7fcc02030ee6 /src/map/map.h
parent0d24db22f0c4aeef985588da3b852078045cdda2 (diff)
downloadhercules-13bd7f95bf5efb4e4acf274baf20636682ea4b58.tar.gz
hercules-13bd7f95bf5efb4e4acf274baf20636682ea4b58.tar.bz2
hercules-13bd7f95bf5efb4e4acf274baf20636682ea4b58.tar.xz
hercules-13bd7f95bf5efb4e4acf274baf20636682ea4b58.zip
- Changed the map_freeblock_unlock code so that when there's an "already free'd pointer" error, the memory manager will print out the invoking function rather than map_freeblock_unlock, this should help fix it up next time it happens.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8189 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.h')
-rw-r--r--src/map/map.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/map.h b/src/map/map.h
index 071bec81c..d299e32c0 100644
--- a/src/map/map.h
+++ b/src/map/map.h
@@ -1278,7 +1278,9 @@ int map_getusers(void);
// block削除関連
int map_freeblock(struct block_list *bl);
int map_freeblock_lock(void);
-int map_freeblock_unlock(void);
+//int map_freeblock_unlock(void);
+int map_freeblock_unlock_sub (char *file, int lineno);
+#define map_freeblock_unlock() map_freeblock_unlock_sub (__FILE__, __LINE__)
// block関連
int map_addblock_sub(struct block_list *, int);
int map_delblock_sub(struct block_list *, int);