summaryrefslogtreecommitdiff
path: root/jni/ruby/ext/-test-/exception/init.c
blob: 853bb68f7983ea93b0397d4dc12beb1cffb33c5c (plain)
1
2
3
4
5
6
7
8
9
10
11
#include "ruby.h"

#define init(n) {void Init_##n(VALUE klass); Init_##n(klass);}

void
Init_exception(void)
{
    VALUE mBug = rb_define_module("Bug");
    VALUE klass = rb_define_class_under(mBug, "Exception", rb_eStandardError);
    TEST_INIT_FUNCS(init);
}