MCPcopy Create free account
hub / github.com/DFHack/dfhack / boolK

Function boolK

depends/lua/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.85

Calls 1

addkFunction · 0.85

Tested by

no test coverage detected