MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / fixjump

Function fixjump

src/vm/luavm/lua/lcode.c: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 1

luaX_syntaxerrorFunction · 0.85

Tested by

no test coverage detected