mirror of https://gitee.com/bigwinds/arangodb
22 lines
836 B
C
22 lines
836 B
C
#ifndef MRUBY_ERROR_H
|
|
#define MRUBY_ERROR_H
|
|
|
|
struct RException {
|
|
MRUBY_OBJECT_HEADER;
|
|
};
|
|
|
|
void mrb_sys_fail(mrb_state *mrb, const char *mesg);
|
|
void mrb_exc_raise(mrb_state *mrb, mrb_value mesg);
|
|
void mrb_bug_errno(const char*, int);
|
|
int sysexit_status(mrb_state *mrb, mrb_value err);
|
|
void error_pos(void);
|
|
mrb_value mrb_exc_new3(mrb_state *mrb, struct RClass* c, mrb_value str);
|
|
mrb_value make_exception(mrb_state *mrb, int argc, mrb_value *argv, int isstr);
|
|
mrb_value mrb_exc_new(mrb_state *mrb, struct RClass *c, const char *ptr, long len);
|
|
mrb_value mrb_make_exception(mrb_state *mrb, int argc, mrb_value *argv);
|
|
mrb_value mrb_sprintf(mrb_state *mrb, const char *fmt, ...);
|
|
void mrb_name_error(mrb_state *mrb, mrb_sym id, const char *fmt, ...);
|
|
void mrb_exc_print(mrb_state *mrb, struct RObject *exc);
|
|
|
|
#endif /* MRUBY_ERROR_H */
|