update benz (exception API refactoring)

This commit is contained in:
Yuichi Nishiwaki 2014-09-17 00:51:01 +09:00
parent 1388887754
commit 6fdf082bdd
4 changed files with 12 additions and 4 deletions

@ -1 +1 @@
Subproject commit 1b36b5d2ff702df5f6bd7c1a8bc19633fc9ad244
Subproject commit a7c2933e01152101ee2abc15bb75b035d4dafd74

View File

@ -255,11 +255,11 @@
raise
raise-continuable
error
make-error-object
error-object?
error-object-message
error-object-irritants
read-error?
file-error?)
error-object-type)
(export procedure?
apply

View File

@ -463,6 +463,14 @@
;; 6.11. Exceptions
(define (read-error? obj)
(and (error-object? obj)
(eq? (error-object-type obj) 'read)))
(define (file-error? obj)
(and (error-object? obj)
(eq? (error-object-type obj) 'file)))
(export with-exception-handler
raise
raise-continuable

View File

@ -69,7 +69,7 @@ main(int argc, char *argv[], char **envp)
pic_funcall(pic, PICRIN_MAIN, "main", pic_nil_value());
}
pic_catch {
pic_print_backtrace(pic, pic->err);
pic_print_backtrace(pic);
status = 1;
}