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

Function luabb_pushcstring

lua/ltypes.c:2112–2116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2110}
2111
2112void luabb_pushcstring(lua_State *lua, const char* cstrval) {
2113 l_cstring_new(lua);
2114 lua_cstring_t *s = (lua_cstring_t *) lua_topointer(lua, -1);
2115 s->val = strdup(cstrval);
2116}
2117
2118void luabb_pushcstringlen(lua_State *lua, const char* cstrval, int len)
2119{

Callers 5

luabb_typeconvert_intFunction · 0.85
lua_sql_stepFunction · 0.85
push_string_arrayFunction · 0.85
sqlite_to_luaFunction · 0.85

Calls 3

l_cstring_newFunction · 0.85
lua_topointerFunction · 0.85
strdupFunction · 0.50

Tested by

no test coverage detected