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

Function init_dbconsumer_funcs

lua/sp.c:5230–5237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5228};
5229
5230static void init_dbconsumer_funcs(Lua L)
5231{
5232 luaL_newmetatable(L, dbtypes.dbconsumer);
5233 lua_pushvalue(L, -1);
5234 lua_setfield(L, -2, "__index");
5235 luaL_openlib(L, NULL, dbconsumer_funcs, 0);
5236 lua_pop(L, 1);
5237}
5238
5239static void *lua_alloc(void *ud, void *ptr, size_t osize, size_t nsize)
5240{

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