| 837 | } |
| 838 | |
| 839 | LUA_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 | |
| 845 | LUA_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)); |
nothing calls this directly
no test coverage detected