diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-09-13 02:03:31 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-09-13 02:03:31 +0000 |
commit | 1e3a1bbb660f8b040033b57cfa22014aca6dace9 (patch) | |
tree | 8f85d3aeac9d540b744aa7dc11c8b7c661c146b2 /include/ruby/intern.h | |
parent | 39dfa2f93f1c90fca52845523f8f985f08969e5e (diff) | |
download | ruby-1e3a1bbb660f8b040033b57cfa22014aca6dace9.tar.gz |
ruby.h: add prefix
* include/ruby/ruby.h: prefix RUBY or RB to global symbols to get
rid of name conflicts with other headers.
* include/ruby/encoding.h, include/ruby/intern.h: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/intern.h')
-rw-r--r-- | include/ruby/intern.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/ruby/intern.h b/include/ruby/intern.h index 56865f3109..af6b75d6d4 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -287,8 +287,9 @@ rb_check_trusted_inline(VALUE obj) #endif void rb_check_copyable(VALUE obj, VALUE orig); -#define OBJ_INIT_COPY(obj, orig) \ +#define RB_OBJ_INIT_COPY(obj, orig) \ ((obj) != (orig) && (rb_obj_init_copy((obj), (orig)), 1)) +#define OBJ_INIT_COPY(obj, orig) RB_OBJ_INIT_COPY(obj, orig) /* eval.c */ int rb_sourceline(void); |