What should a C function called from Lua that pushes a table return?
snippet in lua

What should a C function called from Lua that pushes a table return?

user6358

int my_table( luaState * L) {
  lua_newtable(L);
  lua_pushstring(L, "a_key");
  lua_pushstring(L, "a_value");
  lua_settable(L, -3);
  return 1;
}