We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64588f1 commit 47a7b4dCopy full SHA for 47a7b4d
src/luaconf.h
@@ -376,11 +376,10 @@
376
*/
377
#if defined(LUA_USE_APICHECK)
378
/////////////////////////////////////////////////////////////////////////
379
-// MTA addition for testing if apicheck (and assert) will function as expected
380
- #ifndef NDEBUG
381
- #include <assert.h>
382
- LUA_API int luaX_is_apicheck_enabled();
383
- #endif
+// MTA addition for testing if apicheck will function as expected, and generating more useful crash dumps
+ #undef assert
+ #define assert(_Expression) (void)( (!!(_Expression)) || ( *((int*)NULL) = 0) )
+ LUA_API int luaX_is_apicheck_enabled();
384
385
#define luai_apicheck(L,o) { (void)L; assert(o); }
386
#else
0 commit comments