MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / init_sys_funcs

Function init_sys_funcs

lua/syssp.c:762–769  ·  view source on GitHub ↗

We call this while creating new globals is disabled (because we only want to * expose these functions for SPs in the _SP.sys namespace). Use raw writes to * avoid triggering the metatable methods that block it. */

Source from the content-addressed store, hash-verified

760 * expose these functions for SPs in the _SP.sys namespace). Use raw writes to
761 * avoid triggering the metatable methods that block it. */
762void init_sys_funcs(Lua L) {
763 lua_getglobal(L, "_G");
764 lua_pushstring(L, "sys");
765 lua_newtable(L);
766 luaL_openlib(L, NULL, sys_funcs, 0);
767 lua_rawset(L, -3);
768 lua_pop(L, 1);
769}

Callers 1

exec_procedure_intFunction · 0.85

Calls 2

lua_pushstringFunction · 0.85
lua_rawsetFunction · 0.85

Tested by

no test coverage detected