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

Function l_concat

lua/ltypes.c:2294–2302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2292}
2293
2294static int l_concat(Lua lua)
2295{
2296 char *s1 = strdup(luabb_tostring(lua, 1));
2297 char *s2 = strdup(luabb_tostring(lua, 2));
2298 lua_pushfstring(lua, "%s%s", s1, s2);
2299 free(s1);
2300 free(s2);
2301 return 1;
2302}
2303
2304static int l_int_new(lua_State *lua)
2305{

Callers

nothing calls this directly

Calls 4

luabb_tostringFunction · 0.85
lua_pushfstringFunction · 0.85
freeFunction · 0.85
strdupFunction · 0.50

Tested by

no test coverage detected