diff options
| author | ruki <[email protected]> | 2024-04-05 00:08:59 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-04-05 00:08:59 +0800 |
| commit | 5878db81b603afef02db2c53c57647c7bc6daf9f (patch) | |
| tree | a38e0e8f3ae3f22b94f4c0f0ea46f4c7f31fa34d /core/src/xmake/package | |
| parent | b8d9d415769e27da929c3582bcb893147cf836d5 (diff) | |
add get functions
Diffstat (limited to 'core/src/xmake/package')
| -rw-r--r-- | core/src/xmake/package/loadxmi.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/core/src/xmake/package/loadxmi.c b/core/src/xmake/package/loadxmi.c index f3f5d5cec..6b825e6df 100644 --- a/core/src/xmake/package/loadxmi.c +++ b/core/src/xmake/package/loadxmi.c @@ -85,10 +85,22 @@ tb_int_t xm_package_loadxmi(lua_State* lua) static tb_bool_t s_luaops_inited = tb_false; if (!s_luaops_inited) { - s_luaops._lua_createtable = &lua_createtable; s_luaops._lua_gettop = &lua_gettop; s_luaops._lua_type = &lua_type; + // get functions + s_luaops._lua_getglobal = &lua_getglobal; + s_luaops._lua_gettable = &lua_gettable; + s_luaops._lua_getfield = &lua_getfield; + s_luaops._lua_geti = &lua_geti; + s_luaops._lua_rawget = &lua_rawget; + s_luaops._lua_rawgeti = &lua_rawgeti; + s_luaops._lua_rawgetp = &lua_rawgetp; + s_luaops._lua_createtable = &lua_createtable; + s_luaops._lua_newuserdatauv = &lua_newuserdatauv; + s_luaops._lua_getmetatable = &lua_getmetatable; + s_luaops._lua_getiuservalue = &lua_getiuservalue; + // to functions s_luaops._lua_tointegerx = &lua_tointegerx; s_luaops._lua_toboolean = &lua_toboolean; |
