MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / luaK_code

Function luaK_code

examples/ThirdPartyLibs/lua-5.2.3/src/lcode.c:218–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218static int luaK_code(FuncState *fs, Instruction i)
219{
220 Proto *f = fs->f;
221 dischargejpc(fs); /* `pc' will change */
222 /* put new instruction in code array */
223 luaM_growvector(fs->ls->L, f->code, fs->pc, f->sizecode, Instruction,
224 MAX_INT, "opcodes");
225 f->code[fs->pc] = i;
226 /* save corresponding line information */
227 luaM_growvector(fs->ls->L, f->lineinfo, fs->pc, f->sizelineinfo, int,
228 MAX_INT, "opcodes");
229 f->lineinfo[fs->pc] = fs->ls->lastline;
230 return fs->pc++;
231}
232
233int luaK_codeABC(FuncState *fs, OpCode o, int a, int b, int c)
234{

Callers 3

luaK_codeABCFunction · 0.85
luaK_codeABxFunction · 0.85
codeextraargFunction · 0.85

Calls 1

dischargejpcFunction · 0.85

Tested by

no test coverage detected