MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / luaK_code

Function luaK_code

lua/lcode.c:807–819  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

805
806
807static int luaK_code (FuncState *fs, Instruction i, int line) {
808 Proto *f = fs->f;
809 dischargejpc(fs); /* `pc' will change */
810 /* put new instruction in code array */
811 luaM_growvector(fs->L, f->code, fs->pc, f->sizecode, Instruction,
812 MAX_INT, "code size overflow");
813 f->code[fs->pc] = i;
814 /* save corresponding line information */
815 luaM_growvector(fs->L, f->lineinfo, fs->pc, f->sizelineinfo, int,
816 MAX_INT, "code size overflow");
817 f->lineinfo[fs->pc] = line;
818 return fs->pc++;
819}
820
821
822int 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