diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-08-29 09:12:25 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-08-29 09:12:25 +0000 |
commit | 5da55dfcb480ab2c3a5c2162ee004b155c198099 (patch) | |
tree | bb4d2ec3ec0964ac9adf7f36b6e159bf93a84f92 /include | |
parent | 74b85189b8fd792b98642859639afc5f74a8bb51 (diff) | |
download | ruby-5da55dfcb480ab2c3a5c2162ee004b155c198099.tar.gz |
* struct.c (rb_struct_define_without_accessor_under): added.
This function is similar to rb_define_class_under() against
rb_define_class().
* include/ruby/intern.h: add a declaration of this function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/intern.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ruby/intern.h b/include/ruby/intern.h index e8821acda4..5581c05925 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -848,6 +848,8 @@ VALUE rb_struct_s_members(VALUE); VALUE rb_struct_members(VALUE); VALUE rb_struct_alloc_noinit(VALUE); VALUE rb_struct_define_without_accessor(const char *, VALUE, rb_alloc_func_t, ...); +VALUE rb_struct_define_without_accessor_under(VALUE outer, const char *class_name, VALUE super, rb_alloc_func_t alloc, ...); + /* thread.c */ typedef void rb_unblock_function_t(void *); typedef VALUE rb_blocking_function_t(void *); |