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