| 828 | } CSharpStruct; |
| 829 | |
| 830 | LUA_API void *xlua_pushstruct(lua_State *L, unsigned int size, int meta_ref) { |
| 831 | CSharpStruct *css = (CSharpStruct *)lua_newuserdata(L, size + sizeof(int) + sizeof(unsigned int)); |
| 832 | css->fake_id = -1; |
| 833 | css->len = size; |
| 834 | lua_rawgeti(L, LUA_REGISTRYINDEX, meta_ref); |
| 835 | lua_setmetatable(L, -2); |
| 836 | return css; |
| 837 | } |
| 838 | |
| 839 | LUA_API void xlua_pushcstable(lua_State *L, unsigned int size, int meta_ref) { |
| 840 | lua_createtable(L, 0, size); |
nothing calls this directly
no test coverage detected