** Path all jumps in 'list' to jump to 'target'. ** (The assert means that we cannot fix a jump to a forward address ** because we only know addresses once code is generated.) */
| 259 | ** because we only know addresses once code is generated.) |
| 260 | */ |
| 261 | void luaK_patchlist (FuncState *fs, int list, int target) { |
| 262 | if (target == fs->pc) /* 'target' is current position? */ |
| 263 | luaK_patchtohere(fs, list); /* add list to pending jumps */ |
| 264 | else { |
| 265 | lua_assert(target < fs->pc); |
| 266 | patchlistaux(fs, list, target, NO_REG, target); |
| 267 | } |
| 268 | } |
| 269 | |
| 270 | |
| 271 | /* |
no test coverage detected