diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-03-06 16:49:50 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-03-06 16:49:50 -0300 |
commit | a30c66f0fc17bf733c2289a0d7a76930dac80f47 (patch) | |
tree | 96d7e5fff8245da7540d14818adc28f420036b26 /luaconf.h | |
parent | bb4baa73ea85c0fd49ab2ab96f0f174cd131830a (diff) | |
download | lua-a30c66f0fc17bf733c2289a0d7a76930dac80f47.tar.gz lua-a30c66f0fc17bf733c2289a0d7a76930dac80f47.tar.bz2 lua-a30c66f0fc17bf733c2289a0d7a76930dac80f47.zip |
macro 'luai_apicheck'/'api_check' back with a 'lua_State' parameter
(some people use it)
Diffstat (limited to 'luaconf.h')
-rw-r--r-- | luaconf.h | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: luaconf.h,v 1.246 2015/02/28 19:22:31 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.247 2015/03/02 16:59:01 roberto Exp roberto $ |
3 | ** Configuration file for Lua | 3 | ** Configuration file for Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -639,6 +639,16 @@ | |||
639 | /* #define LUA_NOCVTN2S */ | 639 | /* #define LUA_NOCVTN2S */ |
640 | /* #define LUA_NOCVTS2N */ | 640 | /* #define LUA_NOCVTS2N */ |
641 | 641 | ||
642 | |||
643 | /* | ||
644 | @@ LUA_USE_APICHECK turns on several consistency checks on the C API. | ||
645 | ** Define it as a help when debugging C code. | ||
646 | */ | ||
647 | #if defined(LUA_USE_APICHECK) | ||
648 | #include <assert.h> | ||
649 | #define luai_apicheck(l,e) assert(e) | ||
650 | #endif | ||
651 | |||
642 | /* }================================================================== */ | 652 | /* }================================================================== */ |
643 | 653 | ||
644 | 654 | ||