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

Function luaL_setmetatable

extlibs/sol3/include/sol/sol.hpp:2665–2669  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2663}
2664
2665COMPAT53_API void luaL_setmetatable(lua_State *L, const char *tname) {
2666 luaL_checkstack(L, 1, "not enough stack slots");
2667 luaL_getmetatable(L, tname);
2668 lua_setmetatable(L, -2);
2669}
2670
2671COMPAT53_API void *luaL_testudata(lua_State *L, int i, const char *tname) {
2672 void *p = lua_touserdata(L, i);

Callers

nothing calls this directly

Calls 2

lua_setmetatableFunction · 0.85
luaL_checkstackFunction · 0.70

Tested by

no test coverage detected