diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2020-12-03 10:39:38 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2020-12-03 10:39:38 -0300 |
commit | d41c36bf67d6628bccd91697e7f88e55d40d3970 (patch) | |
tree | e6d57995dfc015e03c209777cc204e1e8bd5c719 /lualib.h | |
parent | d9d2904f09a8039522dfd6f118d4e37bffd5bdf6 (diff) | |
download | lua-d41c36bf67d6628bccd91697e7f88e55d40d3970.tar.gz lua-d41c36bf67d6628bccd91697e7f88e55d40d3970.tar.bz2 lua-d41c36bf67d6628bccd91697e7f88e55d40d3970.zip |
'lua_assert' moved from 'lualib.h' to 'lauxlib.h'
The macro is useful also in 'lauxlib.c', which does not include
'lualib.h'. Also, the definition was corrected to be "on" when
LUAI_ASSERT is defined.
Diffstat (limited to 'lualib.h')
-rw-r--r-- | lualib.h | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -49,10 +49,4 @@ LUAMOD_API int (luaopen_package) (lua_State *L); | |||
49 | LUALIB_API void (luaL_openlibs) (lua_State *L); | 49 | LUALIB_API void (luaL_openlibs) (lua_State *L); |
50 | 50 | ||
51 | 51 | ||
52 | |||
53 | #if !defined(lua_assert) | ||
54 | #define lua_assert(x) ((void)0) | ||
55 | #endif | ||
56 | |||
57 | |||
58 | #endif | 52 | #endif |