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

Function codeAsBx

lib/lua/src/lcode.c:418–423  ·  view source on GitHub ↗

** Format and emit an 'iAsBx' instruction. */

Source from the content-addressed store, hash-verified

416** Format and emit an 'iAsBx' instruction.
417*/
418static int codeAsBx (FuncState *fs, OpCode o, int a, int bc) {
419 unsigned int b = bc + OFFSET_sBx;
420 lua_assert(getOpMode(o) == iAsBx);
421 lua_assert(a <= MAXARG_A && b <= MAXARG_Bx);
422 return luaK_code(fs, CREATE_ABx(o, a, b));
423}
424
425
426/*

Callers 2

luaK_intFunction · 0.85
luaK_floatFunction · 0.85

Calls 1

luaK_codeFunction · 0.85

Tested by

no test coverage detected