MCPcopy Create free account
hub / github.com/TASEmulators/fceux / luaK_code

Function luaK_code

src/lua/src/lcode.c:797–809  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

795
796
797static int luaK_code (FuncState *fs, Instruction i, int line) {
798 Proto *f = fs->f;
799 dischargejpc(fs); /* `pc' will change */
800 /* put new instruction in code array */
801 luaM_growvector(fs->L, f->code, fs->pc, f->sizecode, Instruction,
802 MAX_INT, "code size overflow");
803 f->code[fs->pc] = i;
804 /* save corresponding line information */
805 luaM_growvector(fs->L, f->lineinfo, fs->pc, f->sizelineinfo, int,
806 MAX_INT, "code size overflow");
807 f->lineinfo[fs->pc] = line;
808 return fs->pc++;
809}
810
811
812int luaK_codeABC (FuncState *fs, OpCode o, int a, int b, int c) {

Callers 3

luaK_codeABCFunction · 0.85
luaK_codeABxFunction · 0.85
luaK_setlistFunction · 0.85

Calls 1

dischargejpcFunction · 0.85

Tested by

no test coverage detected