From 44c1debbbeae665ac118c34883d25b14e32cddff Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Wed, 24 Sep 2014 19:24:19 +0900 Subject: [PATCH] don't do pop_try when an error was raised --- include/picrin/error.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/picrin/error.h b/include/picrin/error.h index 5be65502..151cef12 100644 --- a/include/picrin/error.h +++ b/include/picrin/error.h @@ -29,8 +29,7 @@ struct pic_error *pic_make_error(pic_state *, pic_sym, const char *, pic_list); do #define pic_catch \ while (pic_pop_try(pic), 0); \ - else \ - if (pic_pop_try(pic), 1) + else bool pic_push_try(pic_state *); void pic_pop_try(pic_state *);