mirror of
https://github.com/ruby/ruby.git
synced 2026-10-28 16:36:20 +08:00
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
14 lines
195 B
C
14 lines
195 B
C
#include "ruby.h"
|
|
|
|
static VALUE
|
|
bug_struct_len(VALUE obj)
|
|
{
|
|
return LEN2NUM(RSTRUCT_LEN(obj));
|
|
}
|
|
|
|
void
|
|
Init_len(VALUE klass)
|
|
{
|
|
rb_define_method(klass, "rstruct_len", bug_struct_len, 0);
|
|
}
|