| 171 | |
| 172 | |
| 173 | static void LoadUpvalues (LoadState *S, Proto *f) { |
| 174 | int i, n; |
| 175 | n = LoadInt(S); |
| 176 | f->upvalues = luaM_newvector(S->L, n, Upvaldesc); |
| 177 | f->sizeupvalues = n; |
| 178 | for (i = 0; i < n; i++) |
| 179 | f->upvalues[i].name = NULL; |
| 180 | for (i = 0; i < n; i++) { |
| 181 | f->upvalues[i].instack = LoadByte(S); |
| 182 | f->upvalues[i].idx = LoadByte(S); |
| 183 | } |
| 184 | } |
| 185 | |
| 186 | |
| 187 | static void LoadDebug (LoadState *S, Proto *f) { |
no test coverage detected