MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / luaK_code

Function luaK_code

Source/Misc/lua/src/lua.c:4466–4478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4464
4465
4466static int luaK_code (FuncState *fs, Instruction i, int line) {
4467Proto *f = fs->f;
4468dischargejpc(fs); /* `pc' will change */
4469/* put new instruction in code array */
4470luaM_growvector(fs->L, f->code, fs->pc, f->sizecode, Instruction,
4471MAX_INT, "code size overflow");
4472f->code[fs->pc] = i;
4473/* save corresponding line information */
4474luaM_growvector(fs->L, f->lineinfo, fs->pc, f->sizelineinfo, int,
4475MAX_INT, "code size overflow");
4476f->lineinfo[fs->pc] = line;
4477return fs->pc++;
4478}
4479
4480
4481int 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