[Add] DEBUG_PARANOID should abort on Lua DEBUG statements.

This commit is contained in:
Allanis 2014-05-17 13:02:24 +01:00
parent 599e1c9860
commit 3232d35cfe

View File

@ -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__); \