MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / settabss

Function settabss

extlibs/lua/src/ldblib.c:111–114  ·  view source on GitHub ↗

** 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. */

Source from the content-addressed store, hash-verified

109** value can be a string, an int, or a boolean.
110*/
111static void settabss (lua_State *L, const char *k, const char *v) {
112 lua_pushstring(L, v);
113 lua_setfield(L, -2, k);
114}
115
116static void settabsi (lua_State *L, const char *k, int v) {
117 lua_pushinteger(L, v);

Callers 1

db_getinfoFunction · 0.85

Calls 2

lua_pushstringFunction · 0.85
lua_setfieldFunction · 0.85

Tested by

no test coverage detected