| 160 | |
| 161 | |
| 162 | static void LoadUpvalues (LoadState *S, Proto *f) { |
| 163 | int i, n; |
| 164 | n = LoadInt(S); |
| 165 | f->upvalues = luaM_newvector(S->L, n, Upvaldesc); |
| 166 | f->sizeupvalues = n; |
| 167 | for (i = 0; i < n; i++) |
| 168 | f->upvalues[i].name = NULL; |
| 169 | for (i = 0; i < n; i++) { |
| 170 | f->upvalues[i].instack = LoadByte(S); |
| 171 | f->upvalues[i].idx = LoadByte(S); |
| 172 | } |
| 173 | } |
| 174 | |
| 175 | |
| 176 | static void LoadDebug (LoadState *S, Proto *f) { |
no test coverage detected