MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / fixjump

Function fixjump

deps/lua/src/lcode.c:80–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78
79
80static void fixjump (FuncState *fs, int pc, int dest) {
81 Instruction *jmp = &fs->f->code[pc];
82 int offset = dest-(pc+1);
83 lua_assert(dest != NO_JUMP);
84 if (abs(offset) > MAXARG_sBx)
85 luaX_syntaxerror(fs->ls, "control structure too long");
86 SETARG_sBx(*jmp, offset);
87}
88
89
90/*

Callers 2

patchlistauxFunction · 0.85
luaK_concatFunction · 0.85

Calls 1

luaX_syntaxerrorFunction · 0.85

Tested by

no test coverage detected