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

Function init_dbthread_funcs

lua/sp.c:5210–5217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5208};
5209
5210static void init_dbthread_funcs(Lua L)
5211{
5212 luaL_newmetatable(L, dbtypes.dbthread);
5213 lua_pushvalue(L, -1);
5214 lua_setfield(L, -2, "__index");
5215 luaL_openlib(L, NULL, dbthread_funcs, 0);
5216 lua_pop(L, 1);
5217}
5218
5219static const struct luaL_Reg dbconsumer_funcs[] = {
5220 {"__gc", dbconsumer_free},

Callers 1

create_sp_intFunction · 0.85

Calls 3

luaL_newmetatableFunction · 0.85
lua_pushvalueFunction · 0.85
lua_setfieldFunction · 0.85

Tested by

no test coverage detected