cosmetic change

This commit is contained in:
Yuichi Nishiwaki 2014-09-18 14:50:58 +09:00
parent 978c51bb26
commit 7a8144bbf7
1 changed files with 13 additions and 13 deletions

View File

@ -9,6 +9,19 @@
extern "C" { extern "C" {
#endif #endif
struct pic_error {
PIC_OBJECT_HEADER
pic_sym type;
pic_str *msg;
pic_value irrs;
pic_str *stack;
};
#define pic_error_p(v) (pic_type(v) == PIC_TT_ERROR)
#define pic_error_ptr(v) ((struct pic_error *)pic_ptr(v))
struct pic_error *pic_make_error(pic_state *, pic_sym, const char *, pic_list);
/* do not return from try block! */ /* do not return from try block! */
#define pic_try \ #define pic_try \
@ -27,19 +40,6 @@ noreturn void pic_raise(pic_state *, pic_value);
noreturn void pic_throw(pic_state *, pic_sym, const char *, pic_list); noreturn void pic_throw(pic_state *, pic_sym, const char *, pic_list);
noreturn void pic_error(pic_state *, const char *, pic_list); noreturn void pic_error(pic_state *, const char *, pic_list);
struct pic_error {
PIC_OBJECT_HEADER
pic_sym type;
pic_str *msg;
pic_value irrs;
pic_str *stack;
};
#define pic_error_p(v) (pic_type(v) == PIC_TT_ERROR)
#define pic_error_ptr(v) ((struct pic_error *)pic_ptr(v))
struct pic_error *pic_make_error(pic_state *, pic_sym, const char *, pic_list);
#if defined(__cplusplus) #if defined(__cplusplus)
} }
#endif #endif