| 585 | |
| 586 | |
| 587 | static int traverseCclosure (global_State *g, CClosure *cl) { |
| 588 | int i; |
| 589 | for (i = 0; i < cl->nupvalues; i++) /* mark its upvalues */ |
| 590 | markvalue(g, &cl->upvalue[i]); |
| 591 | return 1 + cl->nupvalues; |
| 592 | } |
| 593 | |
| 594 | /* |
| 595 | ** Traverse a Lua closure, marking its prototype and its upvalues. |