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

Function init_cstring

lua/ltypes.c:1509–1520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1507};
1508
1509static void init_cstring(Lua L)
1510{
1511 luaL_newmetatable(L, dbtypes.cstring);
1512 lua_pushstring(L, "__index");
1513 lua_pushvalue(L, -2);
1514 lua_settable(L, -3);
1515
1516 luaL_openlib(L, NULL, cstring_funcs, 0);
1517 init_common(L);
1518
1519 lua_pop(L, 1);
1520}
1521
1522int l_blob_new(lua_State *lua) {
1523 lua_blob_t *d;

Callers 1

init_dbtypesFunction · 0.85

Calls 5

luaL_newmetatableFunction · 0.85
lua_pushstringFunction · 0.85
lua_pushvalueFunction · 0.85
lua_settableFunction · 0.85
init_commonFunction · 0.85

Tested by

no test coverage detected