diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-08 16:02:27 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-08 16:02:27 +0000 |
commit | 4e636484c648878c95acc6167e6300c13f191327 (patch) | |
tree | 049df08c9129d5be4b59b777a5e7a2a43af1f879 /src/map/map.h | |
parent | febdcd8873ad1198e80f6a3a4a4f55f2cc557911 (diff) | |
download | hercules-4e636484c648878c95acc6167e6300c13f191327.tar.gz hercules-4e636484c648878c95acc6167e6300c13f191327.tar.bz2 hercules-4e636484c648878c95acc6167e6300c13f191327.tar.xz hercules-4e636484c648878c95acc6167e6300c13f191327.zip |
- Modified map_freeblock_unlock so that aFree errors will report the file/line that INVOKED the function rather than the function itself. NOTE: Do NOT disable the memory manager as that will break this change. This change is to be temporarily set until it can be resolved.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7049 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.h')
-rw-r--r-- | src/map/map.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/map.h b/src/map/map.h index 3853905d9..c0ed9cf16 100644 --- a/src/map/map.h +++ b/src/map/map.h @@ -1218,7 +1218,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);
+#define map_freeblock_unlock() map_freeblock_unlock_sub(__FILE__, __LINE__)
+int map_freeblock_unlock_sub(const char * file, int line);
// block関連
int map_addblock_sub(struct block_list *, int);
int map_delblock_sub(struct block_list *, int);
|