summaryrefslogtreecommitdiff
path: root/src/common/mapindex.h
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-05-04 13:32:06 -0300
committershennetsind <ind@henn.et>2013-05-04 13:32:06 -0300
commit416cc5c5acdb51aaeda31bb32e0952b5f5bac554 (patch)
tree613cb72552c9f1a5bf483a680e78a8c3c81a24d2 /src/common/mapindex.h
parenteac1a8a7537ae7ff78c45261f8916c2886762cd4 (diff)
downloadhercules-416cc5c5acdb51aaeda31bb32e0952b5f5bac554.tar.gz
hercules-416cc5c5acdb51aaeda31bb32e0952b5f5bac554.tar.bz2
hercules-416cc5c5acdb51aaeda31bb32e0952b5f5bac554.tar.xz
hercules-416cc5c5acdb51aaeda31bb32e0952b5f5bac554.zip
Enabling a temporary debug setup for mapindex
so when this thing finds a unknown id we can actually know where it came from. Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/common/mapindex.h')
-rw-r--r--src/common/mapindex.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/mapindex.h b/src/common/mapindex.h
index 75cb254c0..4c0641c56 100644
--- a/src/common/mapindex.h
+++ b/src/common/mapindex.h
@@ -50,7 +50,8 @@ extern char mapindex_cfgfile[80];
const char* mapindex_getmapname(const char* string, char* output);
const char* mapindex_getmapname_ext(const char* string, char* output);
unsigned short mapindex_name2id(const char*);
-const char* mapindex_id2name(unsigned short);
+#define mapindex_id2name(n) mapindex_id2name_sub(n,__FILE__, __LINE__, __func__)
+const char* mapindex_id2name_sub(unsigned short,const char *file, int line, const char *func);
void mapindex_init(void);
void mapindex_final(void);