| 185 | |
| 186 | |
| 187 | static void loadCode (LoadState *S, Proto *f) { |
| 188 | int n = loadInt(S); |
| 189 | loadAlign(S, sizeof(f->code[0])); |
| 190 | if (S->fixed) { |
| 191 | f->code = getaddr(S, n, Instruction); |
| 192 | f->sizecode = n; |
| 193 | } |
| 194 | else { |
| 195 | f->code = luaM_newvectorchecked(S->L, n, Instruction); |
| 196 | f->sizecode = n; |
| 197 | loadVector(S, f->code, n); |
| 198 | } |
| 199 | } |
| 200 | |
| 201 | |
| 202 | static void loadFunction(LoadState *S, Proto *f); |
no test coverage detected