MCPcopy Create free account
hub / github.com/F-Stack/f-stack / fixjump

Function fixjump

freebsd/contrib/openzfs/module/lua/lcode.c:78–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

patchlistauxFunction · 0.70
luaK_concatFunction · 0.70

Calls 2

absFunction · 0.85
luaX_syntaxerrorFunction · 0.70

Tested by

no test coverage detected