** Add a boolean to list of constants and return its index. */
| 496 | ** Add a boolean to list of constants and return its index. |
| 497 | */ |
| 498 | static int boolK (FuncState *fs, int b) { |
| 499 | TValue o; |
| 500 | setbvalue(&o, b); |
| 501 | return addk(fs, &o, &o); /* use boolean itself as key */ |
| 502 | } |
| 503 | |
| 504 | |
| 505 | /* |