MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / fixjump

Function fixjump

src/Chain/libraries/glua/lcode.cpp:97–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95
96
97static void fixjump(FuncState *fs, int pc, int dest) {
98 Instruction *jmp = &fs->f->code[pc];
99 int offset = dest - (pc + 1);
100 lua_assert(dest != NO_JUMP);
101 if (abs(offset) > MAXARG_sBx)
102 luaX_syntaxerror(fs->ls, "control structure too long");
103 SETARG_sBx(*jmp, offset);
104}
105
106
107/*

Callers 2

patchlistauxFunction · 0.85
luaK_concatFunction · 0.85

Calls 2

luaX_syntaxerrorFunction · 0.85
absFunction · 0.50

Tested by

no test coverage detected