summaryrefslogtreecommitdiff
path: root/jni/ruby/ext/-test-/struct/init.c
blob: 459a939e79c16503657ecbbbcd8664a29d0e36d8 (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_struct(void)
{
    VALUE mBug = rb_define_module("Bug");
    VALUE klass = rb_define_class_under(mBug, "Struct", rb_cStruct);
    TEST_INIT_FUNCS(init);
}