diff options
Diffstat (limited to 'include/mruby/error.h')
| -rw-r--r-- | include/mruby/error.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/include/mruby/error.h b/include/mruby/error.h index e3e2b25e2..e9d3465c3 100644 --- a/include/mruby/error.h +++ b/include/mruby/error.h @@ -7,9 +7,16 @@ #ifndef MRUBY_ERROR_H #define MRUBY_ERROR_H -#if defined(__cplusplus) -extern "C" { -#endif +#include "mruby/common.h" + +/** + * @file mruby/error.h + * @brief Error handling. + * @defgroup mrb_error MRuby Error handling. + * @ingroup MRuby + * @{ + */ +MRB_BEGIN_DECL struct RException { MRB_OBJECT_HEADER; @@ -39,8 +46,7 @@ MRB_API mrb_value mrb_rescue_exceptions(mrb_state *mrb, mrb_func_t body, mrb_val mrb_func_t rescue, mrb_value r_data, mrb_int len, struct RClass **classes); -#if defined(__cplusplus) -} /* extern "C" { */ -#endif +/** @} */ +MRB_END_DECL #endif /* MRUBY_ERROR_H */ |
