summaryrefslogtreecommitdiff
path: root/internal.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-04 12:30:34 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-04 12:30:34 +0000
commit868ad2104c2ad0717b7b52ab6756fccc6f37c4cf (patch)
treeb481abd11c476666aacec9177e66ba1a305ccf45 /internal.h
parent1cf2bb4b2085758112503e7da7414d1ef52d4f48 (diff)
ruby.h: removed internal macros
* include/ruby/ruby.h (RCOMPLEX_SET_REAL, RCOMPLEX_SET_IMAG): removed macros for internal use, which have been exposed by accident. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/internal.h b/internal.h
index bfeffabffd..8cbe16aaff 100644
--- a/internal.h
+++ b/internal.h
@@ -666,12 +666,9 @@ struct RComplex {
#define RCOMPLEX(obj) (R_CAST(RComplex)(obj))
-#ifdef RCOMPLEX_SET_REAL /* shortcut macro for internal only */
-#undef RCOMPLEX_SET_REAL
-#undef RCOMPLEX_SET_IMAG
+/* shortcut macro for internal only */
#define RCOMPLEX_SET_REAL(cmp, r) RB_OBJ_WRITE((cmp), &((struct RComplex *)(cmp))->real,(r))
#define RCOMPLEX_SET_IMAG(cmp, i) RB_OBJ_WRITE((cmp), &((struct RComplex *)(cmp))->imag,(i))
-#endif
struct RHash {
struct RBasic basic;