18 #define warn_print(x) rb_write_error(x)
19 #define warn_print2(x,l) rb_write_error2((x),(l))
28 if (sourceline == 0) {
32 warn_printf(
"%s:%d:in `%s'", sourcefile, sourceline,
84 volatile VALUE eclass, e;
85 const char *
volatile einfo;
155 if ((tail = memchr(einfo,
'\n', elen)) != 0) {
179 #define TRACE_MAX (TRACE_HEAD+TRACE_TAIL+5)
183 for (i = 1; i < len; i++) {
269 warn_print(
": retry outside of rescue clause\n");
293 rb_bug(
"Unknown longjmp status %d", ex);
#define warn_print2(x, l)
void rb_bug(const char *fmt,...)
static void error_pos(void)
static void set_backtrace(VALUE info, VALUE bt)
static int sysexit_status(VALUE err)
VALUE rb_funcall(VALUE, ID, int,...)
Calls a method.
void rb_print_undef_str(VALUE klass, VALUE name)
VALUE rb_obj_is_kind_of(VALUE, VALUE)
void rb_name_error_str(VALUE str, const char *fmt,...)
void rb_name_error(ID id, const char *fmt,...)
#define RB_TYPE_P(obj, type)
void rb_write_error(const char *)
static VALUE get_backtrace(VALUE info)
VALUE rb_class_name(VALUE)
static int error_handle(int ex)
int rb_threadptr_set_raised(rb_thread_t *th)
VALUE rb_iv_get(VALUE, const char *)
VALUE rb_get_backtrace(VALUE info)
int rb_backtrace_p(VALUE obj)
#define rb_thread_raised_clear(th)
VALUE rb_backtrace_to_str_ary(VALUE obj)
VALUE rb_exc_set_backtrace(VALUE exc, VALUE bt)
#define rb_thread_raised_set(th, f)
unsigned char buf[MIME_BUF_SIZE]
int rb_threadptr_reset_raised(rb_thread_t *th)
void ruby_error_print(void)
#define va_init_list(a, b)
static void warn_printf(const char *fmt,...)
VALUE rb_obj_is_instance_of(VALUE, VALUE)
int rb_method_basic_definition_p(VALUE, ID)
VALUE rb_check_backtrace(VALUE bt)
const char * rb_id2name(ID id)
void rb_print_undef(VALUE klass, ID id, int scope)
static void error_print(void)
static rb_thread_t * GET_THREAD(void)