| 1 |
#include "ruby.h" |
| 2 |
|
| 3 |
#define init(n) {void Init_##n(VALUE klass); Init_##n(klass);} |
| 4 |
|
| 5 |
void |
| 6 |
Init_struct(void) |
| 7 |
{ |
| 8 |
VALUE mBug = rb_define_module("Bug"); |
| 9 |
VALUE klass = rb_define_class_under(mBug, "Struct", rb_cStruct); |
| 10 |
TEST_INIT_FUNCS(init); |
| 11 |
} |