| 967 | |
| 968 | |
| 969 | static int cond (LexState *ls) { |
| 970 | /* cond -> exp */ |
| 971 | expdesc v; |
| 972 | expr(ls, &v); /* read condition */ |
| 973 | if (v.k == VNIL) v.k = VFALSE; /* `falses' are all equal here */ |
| 974 | luaK_goiftrue(ls->fs, &v); |
| 975 | return v.f; |
| 976 | } |
| 977 | |
| 978 | |
| 979 | static void breakstat (LexState *ls) { |