Defines | Functions

eval_error.c File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define warn_print(x)   rb_write_error(x)
#define warn_print2(x, l)   rb_write_error2(x,l)
#define TRACE_MAX   (TRACE_HEAD+TRACE_TAIL+5)
#define TRACE_HEAD   8
#define TRACE_TAIL   5

Functions

static void warn_printf (const char *fmt,...)
static void error_pos (void)
VALUE rb_check_backtrace (VALUE)
static VALUE get_backtrace (VALUE info)
VALUE rb_get_backtrace (VALUE info)
static void set_backtrace (VALUE info, VALUE bt)
static void error_print (void)
void ruby_error_print (void)
void rb_print_undef (VALUE klass, ID id, int scope)
static int sysexit_status (VALUE err)
static int error_handle (int ex)

Define Documentation

#define TRACE_HEAD   8

Referenced by error_print().

#define TRACE_MAX   (TRACE_HEAD+TRACE_TAIL+5)

Referenced by error_print().

#define TRACE_TAIL   5

Referenced by error_print().

#define warn_print (   x  )     rb_write_error(x)

Definition at line 18 of file eval_error.c.

Referenced by error_handle(), and error_print().

#define warn_print2 (   x,
  l 
)    rb_write_error2(x,l)

Definition at line 19 of file eval_error.c.

Referenced by error_print().


Function Documentation

static int error_handle ( int  ex  )  [static]
static void error_pos ( void   )  [static]

Definition at line 22 of file eval_error.c.

References rb_frame_callee(), rb_id2name(), rb_sourcefile(), rb_sourceline(), and warn_printf().

Referenced by error_handle(), and error_print().

static void error_print ( void   )  [static]
static VALUE get_backtrace ( VALUE  info  )  [static]
VALUE rb_check_backtrace ( VALUE   ) 

Definition at line 582 of file error.c.

References err, NIL_P, RARRAY_LEN, RARRAY_PTR, rb_ary_new3(), rb_eTypeError, rb_raise(), T_ARRAY, T_STRING, and TYPE.

Referenced by exc_set_backtrace(), and get_backtrace().

VALUE rb_get_backtrace ( VALUE  info  ) 

Definition at line 55 of file eval_error.c.

References get_backtrace().

Referenced by eval_string_with_cref().

void rb_print_undef ( VALUE  klass,
ID  id,
int  scope 
)
void ruby_error_print ( void   ) 

Definition at line 189 of file eval_error.c.

References error_print().

Referenced by rb_f_abort().

static void set_backtrace ( VALUE  info,
VALUE  bt 
) [static]

Definition at line 61 of file eval_error.c.

References rb_funcall(), and rb_intern.

Referenced by errat_setter(), make_exception(), and setup_exception().

static int sysexit_status ( VALUE  err  )  [static]

Definition at line 212 of file eval_error.c.

References NUM2INT, and rb_iv_get().

Referenced by error_handle(), and ruby_cleanup().

static void warn_printf ( const char *  fmt,
  ... 
) [static]

Definition at line 7 of file eval_error.c.

References buf, rb_write_error(), va_init_list, and vsnprintf.

Referenced by error_handle(), error_pos(), error_print(), and setup_exception().