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

Function push_i32_array

lua/sp.c:5848–5857  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5846}
5847
5848static int push_i32_array(Lua L, struct param_data *p)
5849{
5850 lua_newtable(L);
5851 int32_t *is = p->u.p;
5852 for (int i = 0; i < p->arraylen; ++i) {
5853 luabb_pushinteger(L, is[i]);
5854 lua_rawseti(L, -2, i + 1);
5855 }
5856 return 0;
5857}
5858
5859static int push_i64_array(Lua L, struct param_data *p)
5860{

Callers 1

push_int_arrayFunction · 0.85

Calls 2

luabb_pushintegerFunction · 0.85
lua_rawsetiFunction · 0.85

Tested by

no test coverage detected