Commit 4b217ee0 by Thomas Moschny Committed by Stéphane Graber

Fix Lua 5.3 compatibility code.

If Lua 5.3 is compiled with LUA_COMPAT_5_2 defined, the luaL_checkunsigned compatibility macro is already defined in lauxlib.h. Signed-off-by: 's avatarThomas Moschny <thomas.moschny@gmx.de>
parent d5cd100b
...@@ -39,8 +39,10 @@ ...@@ -39,8 +39,10 @@
#endif #endif
#if LUA_VERSION_NUM >= 503 #if LUA_VERSION_NUM >= 503
#ifndef luaL_checkunsigned
#define luaL_checkunsigned(L,n) ((lua_Unsigned)luaL_checkinteger(L,n)) #define luaL_checkunsigned(L,n) ((lua_Unsigned)luaL_checkinteger(L,n))
#endif #endif
#endif
#ifdef NO_CHECK_UDATA #ifdef NO_CHECK_UDATA
#define checkudata(L,i,tname) lua_touserdata(L, i) #define checkudata(L,i,tname) lua_touserdata(L, i)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment