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