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

Function boolK

third-party/lua-5.3.5/src/lcode.c:491–495  ·  view source on GitHub ↗

** Add a boolean to list of constants and return its index. */

Source from the content-addressed store, hash-verified

489** Add a boolean to list of constants and return its index.
490*/
491static int boolK (FuncState *fs, int b) {
492 TValue o;
493 setbvalue(&o, b);
494 return addk(fs, &o, &o); /* use boolean itself as key */
495}
496
497
498/*

Callers 1

luaK_exp2RKFunction · 0.70

Calls 1

addkFunction · 0.70

Tested by

no test coverage detected