mirror of https://github.com/axmolengine/axmol.git
fix luabindings 52/53 compat
This commit is contained in:
parent
e566f682da
commit
de96a3fe1b
|
@ -28,14 +28,6 @@
|
||||||
|
|
||||||
#include "tolua++.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_PTR_MAPPING "toluafix_refid_ptr_mapping"
|
||||||
#define TOLUA_REFID_TYPE_MAPPING "toluafix_refid_type_mapping"
|
#define TOLUA_REFID_TYPE_MAPPING "toluafix_refid_type_mapping"
|
||||||
#define TOLUA_REFID_FUNCTION_MAPPING "toluafix_refid_function_mapping"
|
#define TOLUA_REFID_FUNCTION_MAPPING "toluafix_refid_function_mapping"
|
||||||
|
|
Loading…
Reference in New Issue