aboutsummaryrefslogtreecommitdiff
path: root/luaconf.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-03-06 16:49:50 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-03-06 16:49:50 -0300
commita30c66f0fc17bf733c2289a0d7a76930dac80f47 (patch)
tree96d7e5fff8245da7540d14818adc28f420036b26 /luaconf.h
parentbb4baa73ea85c0fd49ab2ab96f0f174cd131830a (diff)
downloadlua-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.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/luaconf.h b/luaconf.h
index 6818a172..79a9e768 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -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