diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-08-21 11:30:24 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-08-21 11:30:24 +0000 |
commit | 885d781abcfce71458b705d227cb719b8d045214 (patch) | |
tree | 83582e2545ff4ad7e3c37770bf0dae3bbce94e61 /symbol.h | |
parent | 18d8ba2594fda072bb8308f096bbe30c52b92d3c (diff) | |
download | bundler-885d781abcfce71458b705d227cb719b8d045214.tar.gz |
* ext/objspace/objspace.c: add a new method ObjectSpace.count_symbols.
[Feature #11158]
* symbol.c (rb_sym_immortal_count): added to count immortal symbols.
* symbol.h: ditto.
* test/objspace/test_objspace.rb: add a test for this method.
* NEWS: describe about this method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'symbol.h')
-rw-r--r-- | symbol.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -100,4 +100,9 @@ is_global_name_punct(const int c) ID rb_intern_cstr_without_pindown(const char *, long, rb_encoding *); +RUBY_SYMBOL_EXPORT_BEGIN + +size_t rb_sym_immortal_count(void); + +RUBY_SYMBOL_EXPORT_END #endif |