macro 'luai_apicheck'/'api_check' back with a 'lua_State' parameter

(some people use it)
This commit is contained in:
Roberto Ierusalimschy
2015-03-06 16:49:50 -03:00
parent bb4baa73ea
commit a30c66f0fc
6 changed files with 60 additions and 54 deletions

View File

@@ -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 <assert.h>
#define luai_apicheck(l,e) assert(e)
#endif
/* }================================================================== */