summaryrefslogtreecommitdiff
path: root/template/sizes.c.tmpl
diff options
context:
space:
mode:
authorAlan Wu <[email protected]>2024-07-12 19:32:38 -0400
committerAlan Wu <[email protected]>2024-07-15 21:08:13 -0400
commit9bf1049dfb37f18e37faebdc1662275a8bc1e917 (patch)
treeff8fa233160e53223fadbb8d27d522d8ef22ba81 /template/sizes.c.tmpl
parente165d92d37ab1b32d505977d685993cba3131298 (diff)
Refactor so RDoc picks up RbConfig::{SIZEOF,LIMITS}
Diffstat (limited to 'template/sizes.c.tmpl')
-rw-r--r--template/sizes.c.tmpl3
1 files changed, 2 insertions, 1 deletions
diff --git a/template/sizes.c.tmpl b/template/sizes.c.tmpl
index 31060f5fea..d1cdbc095f 100644
--- a/template/sizes.c.tmpl
+++ b/template/sizes.c.tmpl
@@ -30,7 +30,8 @@ void
Init_sizeof(void)
{
VALUE s = rb_hash_new();
- rb_define_const(rb_define_module("RbConfig"), "SIZEOF", s);
+ VALUE mRbConfig = rb_define_module("RbConfig");
+ rb_define_const(mRbConfig, "SIZEOF", s);
#define DEFINE(type, size) rb_hash_aset(s, rb_str_new_cstr(#type), INT2FIX(SIZEOF_##size))
#define DEFINE_SIZE(type) rb_hash_aset(s, rb_str_new_cstr(#type), INT2FIX(sizeof(type)))