From ed1e0744c47c0cfb9cf05545b807dc2cd85d3da7 Mon Sep 17 00:00:00 2001 From: halx99 Date: Sun, 29 Dec 2019 21:31:19 +0800 Subject: [PATCH] fix luabindings 52/53 compat --- cocos/scripting/lua-bindings/manual/tolua_fix.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/cocos/scripting/lua-bindings/manual/tolua_fix.h b/cocos/scripting/lua-bindings/manual/tolua_fix.h index a240791760..9490fd57b5 100644 --- a/cocos/scripting/lua-bindings/manual/tolua_fix.h +++ b/cocos/scripting/lua-bindings/manual/tolua_fix.h @@ -27,14 +27,6 @@ #define __TOLUA_FIX_H_ #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"