| 1176 | |
| 1177 | |
| 1178 | static int cond (LexState *ls) { |
| 1179 | /* cond -> exp */ |
| 1180 | expdesc v; |
| 1181 | expr(ls, &v); /* read condition */ |
| 1182 | if (v.k == VNIL) v.k = VFALSE; /* 'falses' are all equal here */ |
| 1183 | luaK_goiftrue(ls->fs, &v); |
| 1184 | return v.f; |
| 1185 | } |
| 1186 | |
| 1187 | |
| 1188 | static void gotostat (LexState *ls, int pc) { |
no test coverage detected