MCPcopy Create free account
hub / github.com/apache/thrift / add_to_group

Function add_to_group

lib/lua/src/luasocket.c:149–157  ·  view source on GitHub ↗

Check/enforce inheritance

Source from the content-addressed store, hash-verified

147
148// Check/enforce inheritance
149static void add_to_group(lua_State *L,
150 const char *metatablename,
151 const char *groupname) {
152 luaL_getmetatable(L, metatablename); // mt
153 lua_pushstring(L, groupname); // mt, "name"
154 lua_pushboolean(L, 1); // mt, "name", true
155 lua_rawset(L, -3); // mt
156 lua_pop(L, 1);
157}
158
159static void set_methods(lua_State *L,
160 const char *metatablename,

Callers 1

luaopen_libluasocketFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected