GitHub

Original file line numberDiff line numberDiff line change

@@ -74,6 +74,15 @@ mrb_break_value_set(struct RBreak *brk, mrb_value val)

7474

#define mrb_break_proc_get(brk) ((brk)->proc)

7575

#define mrb_break_proc_set(brk, p) ((brk)->proc = p)

7676
77+

/**

78+

* Error check

79+

*

80+

*/

81+

/* clear error status in the mrb_state structure */

82+

MRB_API void mrb_clear_error(mrb_state *mrb);

83+

/* returns TRUE if error in the previous call; internally calls mrb_clear_error() */

84+

MRB_API mrb_bool mrb_check_error(mrb_state *mrb);

85+
7786

/**

7887

* Protect

7988

*

Read the original on github.com ↗