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

Function push_i64_array

lua/sp.c:5859–5868  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5857}
5858
5859static int push_i64_array(Lua L, struct param_data *p)
5860{
5861 lua_newtable(L);
5862 int64_t *is = p->u.p;
5863 for (int i = 0; i < p->arraylen; ++i) {
5864 luabb_pushinteger(L, is[i]);
5865 lua_rawseti(L, -2, i + 1);
5866 }
5867 return 0;
5868}
5869
5870static int push_int_array(Lua L, struct param_data *p)
5871{

Callers 1

push_int_arrayFunction · 0.85

Calls 2

luabb_pushintegerFunction · 0.85
lua_rawsetiFunction · 0.85

Tested by

no test coverage detected