don't do pop_try when an error was raised

This commit is contained in:
Yuichi Nishiwaki 2014-09-24 19:24:19 +09:00
parent d6b2fe05ce
commit 44c1debbbe
1 changed files with 1 additions and 2 deletions

View File

@ -29,8 +29,7 @@ struct pic_error *pic_make_error(pic_state *, pic_sym, const char *, pic_list);
do do
#define pic_catch \ #define pic_catch \
while (pic_pop_try(pic), 0); \ while (pic_pop_try(pic), 0); \
else \ else
if (pic_pop_try(pic), 1)
bool pic_push_try(pic_state *); bool pic_push_try(pic_state *);
void pic_pop_try(pic_state *); void pic_pop_try(pic_state *);