Debian Codegraph @

ext/-test-/struct/len.c

raw
1 #include "ruby.h"
2
3 static VALUE
4 bug_struct_len(VALUE obj)
5 {
6 return LONG2NUM(RSTRUCT_LEN(obj));
7 }
8
9 void
10 Init_len(VALUE klass)
11 {
12 rb_define_method(klass, "rstruct_len", bug_struct_len, 0);
13 }