MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / luaL_setmetatable

Function luaL_setmetatable

modules/engine/lua/src/build.skr_lua.cpp:319–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317}
318
319void luaL_setmetatable (lua_State *L, const char *tname) {
320 luaL_checkstack(L, 1, "not enough stack slots");
321 luaL_getmetatable(L, tname);
322 lua_setmetatable(L, -2);
323}
324
325void dtor_resource_handle(void* p) {
326 auto resource = (skr_resource_handle_t*)p;

Callers 1

bind_skr_resource_handleFunction · 0.70

Calls 2

luaL_checkstackFunction · 0.50
lua_setmetatableFunction · 0.50

Tested by

no test coverage detected