MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / pushmode

Function pushmode

lib/lua/src/lbaselib.c:184–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182
183
184static int pushmode (lua_State *L, int oldmode) {
185 if (oldmode == -1)
186 luaL_pushfail(L); /* invalid call to 'lua_gc' */
187 else
188 lua_pushstring(L, (oldmode == LUA_GCINC) ? "incremental"
189 : "generational");
190 return 1;
191}
192
193
194/*

Callers 1

luaB_collectgarbageFunction · 0.85

Calls 1

lua_pushstringFunction · 0.85

Tested by

no test coverage detected