diff options
author | Alan Wu <[email protected]> | 2024-07-12 19:32:38 -0400 |
---|---|---|
committer | Alan Wu <[email protected]> | 2024-07-15 21:08:13 -0400 |
commit | 9bf1049dfb37f18e37faebdc1662275a8bc1e917 () | |
tree | ff8fa233160e53223fadbb8d27d522d8ef22ba81 /template | |
parent | e165d92d37ab1b32d505977d685993cba3131298 (diff) |
Refactor so RDoc picks up RbConfig::{SIZEOF,LIMITS}
-rw-r--r-- | template/limits.c.tmpl | 3 | ||||
-rw-r--r-- | template/sizes.c.tmpl | 3 |
2 files changed, 4 insertions, 2 deletions
@@ -55,7 +55,8 @@ void Init_limits(void) { VALUE h = rb_hash_new(); - rb_define_const(rb_define_module("RbConfig"), "LIMITS", h); #ifdef HAVE_LONG_LONG #ifndef ULLONG_MAX @@ -30,7 +30,8 @@ void Init_sizeof(void) { VALUE s = rb_hash_new(); - rb_define_const(rb_define_module("RbConfig"), "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))) |