mirror of https://github.com/axmolengine/axmol.git
fix luabindings 52/53 compat
This commit is contained in:
parent
2b3c2872b7
commit
ed1e0744c4
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue