diff options
author | Adam Borowski <kilobyte@angband.pl> | 2010-07-19 10:27:48 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2010-07-19 16:14:57 +0200 |
commit | 42ccd053e2be73e5e2a7fbf3be8643141251bb94 (patch) | |
tree | 884e9ba6f5495a9aad9f094667492ae9852917a4 /crawl-ref/source/dlua.h | |
parent | dbc72c204e2b75e40397e089e08289012a8c2087 (diff) | |
download | crawl-ref-42ccd053e2be73e5e2a7fbf3be8643141251bb94.tar.gz crawl-ref-42ccd053e2be73e5e2a7fbf3be8643141251bb94.zip |
A compile option (-DDEBUG_GLOBALS) to let valgrind act on global classes.
It's not the default, even for debug builds, since it makes debugging with gdb
nasty -- you have to refer to real_you->field when gdb mentions you.field.
Even naming real_you just you would still force you to use "->" instead of ".".
Diffstat (limited to 'crawl-ref/source/dlua.h')
-rw-r--r-- | crawl-ref/source/dlua.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/dlua.h b/crawl-ref/source/dlua.h index 7e5bd9f573..df6ac3b343 100644 --- a/crawl-ref/source/dlua.h +++ b/crawl-ref/source/dlua.h @@ -10,6 +10,9 @@ #include "clua.h" // Defined in acr.cc +#ifdef DEBUG_GLOBALS +#define dlua (*real_dlua) +#endif extern CLua dlua; // Lua chunks cannot exceed 512K. Which is plenty! |