** Add nil to list of constants and return its index. */
| 497 | ** Add nil to list of constants and return its index. |
| 498 | */ |
| 499 | static int nilK (FuncState *fs) { |
| 500 | TValue k, v; |
| 501 | setnilvalue(&v); |
| 502 | /* cannot use nil as key; instead use table itself to represent nil */ |
| 503 | sethvalue(fs->ls->L, &k, fs->ls->h); |
| 504 | return addk(fs, &k, &v); |
| 505 | } |
| 506 | |
| 507 | |
| 508 | /* |