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

Function luaK_code

third-party/lua-5.1.5/src/lcode.c:789–801  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 3

luaK_codeABCFunction · 0.70
luaK_codeABxFunction · 0.70
luaK_setlistFunction · 0.70

Calls 1

dischargejpcFunction · 0.70

Tested by

no test coverage detected