** Variations of 'lua_settable', used by 'db_getinfo' to put results ** from 'lua_getinfo' into result table. Key is always a string; ** value can be a string, an int, or a boolean. */
| 109 | ** value can be a string, an int, or a boolean. |
| 110 | */ |
| 111 | static void settabss (lua_State *L, const char *k, const char *v) { |
| 112 | lua_pushstring(L, v); |
| 113 | lua_setfield(L, -2, k); |
| 114 | } |
| 115 | |
| 116 | static void settabsi (lua_State *L, const char *k, int v) { |
| 117 | lua_pushinteger(L, v); |
no test coverage detected