MCPcopy Create free account
hub / github.com/Cocos-BCX/cocos-mainnet / luaK_code

Function luaK_code

libraries/lua-gph/lib/src/lcode.cpp:294–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292*/
293#include <iostream>
294static int luaK_code (FuncState *fs, Instruction i) {
295 Proto *f = fs->f;
296 dischargejpc(fs); /* 'pc' will change */
297 /* put new instruction in code array */
298 luaM_growvector(fs->ls->L, f->code, fs->pc, f->sizecode, Instruction,
299 MAX_INT, "opcodes");
300 f->code[fs->pc] = i;
301 /* save corresponding line information */
302 luaM_growvector(fs->ls->L, f->lineinfo, fs->pc, f->sizelineinfo, int,
303 MAX_INT, "opcodes");
304 f->lineinfo[fs->pc] = fs->ls->lastline;
305 return fs->pc++;
306}
307
308
309/*

Callers 3

luaK_codeABCFunction · 0.85
luaK_codeABxFunction · 0.85
codeextraargFunction · 0.85

Calls 1

dischargejpcFunction · 0.85

Tested by

no test coverage detected