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

Function push_real_array

lua/sp.c:5877–5886  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5875}
5876
5877static int push_real_array(Lua L, struct param_data *p)
5878{
5879 lua_newtable(L);
5880 double *ds = p->u.p;
5881 for (int i = 0; i < p->arraylen; ++i) {
5882 luabb_pushreal(L, ds[i]);
5883 lua_rawseti(L, -2, i + 1);
5884 }
5885 return 0;
5886}
5887
5888static int push_param(Lua L, struct sqlclntstate *clnt, int64_t index)
5889{

Callers 1

push_paramFunction · 0.85

Calls 2

luabb_pushrealFunction · 0.85
lua_rawsetiFunction · 0.85

Tested by

no test coverage detected