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

Function fixjump

Source/Misc/lua/src/lua.c:3749–3756  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3747
3748
3749static void fixjump (FuncState *fs, int pc, int dest) {
3750Instruction *jmp = &fs->f->code[pc];
3751int offset = dest-(pc+1);
3752lua_assert(dest != NO_JUMP);
3753if (abs(offset) > MAXARG_sBx)
3754luaX_syntaxerror(fs->ls, "control structure too long");
3755SETARG_sBx(*jmp, offset);
3756}
3757
3758
3759/*

Callers 2

patchlistauxFunction · 0.85
luaK_concatFunction · 0.85

Calls 1

luaX_syntaxerrorFunction · 0.85

Tested by

no test coverage detected