root/ext/-test-/fatal/rb_fatal.c

/* [previous][next][first][last][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. ruby_fatal
  2. Init_rb_fatal

#include <ruby.h>

static VALUE
ruby_fatal(VALUE obj, VALUE msg)
{
    const char *cmsg = NULL;

    (void)obj;

    cmsg = RSTRING_PTR(msg);
    rb_fatal("%s", cmsg);
    return 0; /* never reached */
}

void
Init_rb_fatal(void)
{
    rb_define_method(rb_mKernel, "rb_fatal", ruby_fatal, 1);
}

/* [previous][next][first][last][top][bottom][index][help] */