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

Function getstr

lua/ltypes.c:1424–1432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1422}
1423
1424static void getstr(Lua lua, const char **s, int i)
1425{
1426 *s = NULL;
1427 dbtypes_enum t = luabb_dbtype(lua, i);
1428 if (t == DBTYPES_CSTRING)
1429 *s = (((const lua_cstring_t *)lua_topointer(lua, i))->val);
1430 else if (lua_isstring(lua, i))
1431 *s = lua_tostring(lua, i);
1432}
1433
1434static void getstrs(Lua lua, const char **s1, const char **s2)
1435{

Callers 15

l_strcmpFunction · 0.85
getstrsFunction · 0.85
luaX_lexerrorFunction · 0.85
luaH_getstr_intFunction · 0.85
anchor_tokenFunction · 0.85
codeblobFunction · 0.85
DumpStringFunction · 0.85
funcinfoFunction · 0.85
getobjnameFunction · 0.85
addinfoFunction · 0.85
luaF_getlocalnameFunction · 0.85
aux_upvalueFunction · 0.85

Calls 2

lua_topointerFunction · 0.85
lua_isstringFunction · 0.85

Tested by

no test coverage detected