From a30c66f0fc17bf733c2289a0d7a76930dac80f47 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 6 Mar 2015 16:49:50 -0300 Subject: macro 'luai_apicheck'/'api_check' back with a 'lua_State' parameter (some people use it) --- luaconf.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'luaconf.h') diff --git a/luaconf.h b/luaconf.h index 6818a172..79a9e768 100644 --- a/luaconf.h +++ b/luaconf.h @@ -1,5 +1,5 @@ /* -** $Id: luaconf.h,v 1.246 2015/02/28 19:22:31 roberto Exp roberto $ +** $Id: luaconf.h,v 1.247 2015/03/02 16:59:01 roberto Exp roberto $ ** Configuration file for Lua ** See Copyright Notice in lua.h */ @@ -639,6 +639,16 @@ /* #define LUA_NOCVTN2S */ /* #define LUA_NOCVTS2N */ + +/* +@@ LUA_USE_APICHECK turns on several consistency checks on the C API. +** Define it as a help when debugging C code. +*/ +#if defined(LUA_USE_APICHECK) +#include +#define luai_apicheck(l,e) assert(e) +#endif + /* }================================================================== */ -- cgit v1.2.3-55-g6feb