diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-18 15:02:21 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-18 15:02:21 +0000 |
commit | f60e62ab20cc128b51336e7d24c820ccdeaca808 (patch) | |
tree | 71e70ec47435de958744334072117b779448a789 /include/ruby/ruby.h | |
parent | 7042bf24df52c47927b6c402e843fc0b3bb009d7 (diff) | |
download | ruby-f60e62ab20cc128b51336e7d24c820ccdeaca808.tar.gz ruby-f60e62ab20cc128b51336e7d24c820ccdeaca808.tar.xz ruby-f60e62ab20cc128b51336e7d24c820ccdeaca808.zip |
* include/ruby/ruby.h (rb_type): forward declaration to suppress a
warning. a patch from Naohisa Goto at [ruby-dev:39350]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/ruby.h')
-rw-r--r-- | include/ruby/ruby.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 2d6ba66e5..8fc1eb0f0 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -384,6 +384,7 @@ enum ruby_value_type { #define BUILTIN_TYPE(x) (int)(((struct RBasic*)(x))->flags & T_MASK) +static inline int rb_type(VALUE obj); #define TYPE(x) rb_type((VALUE)(x)) #define RB_GC_GUARD(v) (*(volatile VALUE *)&(v)) |