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/clua.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/clua.h')
-rw-r--r-- | crawl-ref/source/clua.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/clua.h b/crawl-ref/source/clua.h index 23e1f64e62..2360e7d893 100644 --- a/crawl-ref/source/clua.h +++ b/crawl-ref/source/clua.h @@ -238,6 +238,9 @@ private: }; // Defined in acr.cc +#ifdef DEBUG_GLOBALS +#define clua (*real_clua) +#endif extern CLua clua; void lua_set_exclusive_item(const item_def *item = NULL); |