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

Function push_string_array

lua/sp.c:5837–5846  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5835}
5836
5837static int push_string_array(Lua L, struct param_data *p)
5838{
5839 lua_newtable(L);
5840 char **ss = p->u.p;
5841 for (int i = 0; i < p->arraylen; ++i) {
5842 luabb_pushcstring(L, ss[i]);
5843 lua_rawseti(L, -2, i + 1);
5844 }
5845 return 0;
5846}
5847
5848static int push_i32_array(Lua L, struct param_data *p)
5849{

Callers 1

push_paramFunction · 0.85

Calls 2

luabb_pushcstringFunction · 0.85
lua_rawsetiFunction · 0.85

Tested by

no test coverage detected