fix luabindings 52/53 compat

This commit is contained in:
halx99 2019-12-29 21:31:19 +08:00
parent 2b3c2872b7
commit ed1e0744c4
1 changed files with 0 additions and 8 deletions

View File

@ -28,14 +28,6 @@
#include "tolua++.h"
#if LUA_VERSION_NUM > 501
#define lua_setfenv lua_setuservalue
#define lua_open luaL_newstate
#if !defined(LUA_COMPAT_5_1) && !defined(LUA_COMPAT_ALL)
#define lua_objlen(L,i) lua_rawlen(L, (i))
#endif
#endif
#define TOLUA_REFID_PTR_MAPPING "toluafix_refid_ptr_mapping"
#define TOLUA_REFID_TYPE_MAPPING "toluafix_refid_type_mapping"
#define TOLUA_REFID_FUNCTION_MAPPING "toluafix_refid_function_mapping"