| 536 | |
| 537 | |
| 538 | static int traverseCclosure (global_State *g, CClosure *cl) { |
| 539 | int i; |
| 540 | for (i = 0; i < cl->nupvalues; i++) /* mark its upvalues */ |
| 541 | markvalue(g, &cl->upvalue[i]); |
| 542 | return 1 + cl->nupvalues; |
| 543 | } |
| 544 | |
| 545 | /* |
| 546 | ** Traverse a Lua closure, marking its prototype and its upvalues. |