[Add] DEBUG_PARANOID should abort on Lua DEBUG statements.
This commit is contained in:
parent
599e1c9860
commit
3232d35cfe
@ -6,8 +6,13 @@
|
||||
|
||||
/* Debug stuff. */
|
||||
#ifdef NODEBUG
|
||||
#ifdef DEBUG_PARANOID
|
||||
#define LLUA_DEBUF(str, args...) \
|
||||
(fprintf(stdout, "Lua: "str"\n, ## args), abort())
|
||||
#else
|
||||
#define LLUA_DEBUG(str, args...) \
|
||||
(fprintf(stdout, "Lua: "str"\n", ## args))
|
||||
#endif
|
||||
|
||||
#define LLUA_INVALID_PARAMETER() { \
|
||||
LLUA_DEBUG("[%s] Invalid parameter (%s:%d)", __func__, __FILE__, __LINE__); \
|
||||
|
Loading…
Reference in New Issue
Block a user