MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / pushmode

Function pushmode

third-party/lua-5.5.0/src/lbaselib.c:186–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

luaB_collectgarbageFunction · 0.70

Calls 1

lua_pushstringFunction · 0.70

Tested by

no test coverage detected