pic_catch binds current error object to a variable
This commit is contained in:
+2
-1
@@ -26,6 +26,7 @@ main(int argc, char *argv[], char **envp)
|
||||
{
|
||||
char t;
|
||||
pic_state *pic;
|
||||
pic_value e;
|
||||
int status;
|
||||
|
||||
pic = pic_open(pic_default_allocf, NULL);
|
||||
@@ -43,7 +44,7 @@ main(int argc, char *argv[], char **envp)
|
||||
|
||||
status = 0;
|
||||
}
|
||||
pic_catch {
|
||||
pic_catch(e) {
|
||||
pic_print_error(pic, xstderr);
|
||||
status = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user