MCPcopy Create free account
hub / github.com/Tencent/xLua / xlua_pushcstable

Function xlua_pushcstable

WebGLPlugins/xlua.c:839–843  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

837}
838
839LUA_API void xlua_pushcstable(lua_State *L, unsigned int size, int meta_ref) {
840 lua_createtable(L, 0, size);
841 lua_rawgeti(L, LUA_REGISTRYINDEX, meta_ref);
842 lua_setmetatable(L, -2);
843}
844
845LUA_API void *xlua_newstruct(lua_State *L, int size, int meta_ref) {
846 CSharpStruct *css = (CSharpStruct *)lua_newuserdata(L, size + sizeof(int) + sizeof(unsigned int));

Callers

nothing calls this directly

Calls 3

lua_createtableFunction · 0.85
lua_rawgetiFunction · 0.85
lua_setmetatableFunction · 0.85

Tested by

no test coverage detected