aboutsummaryrefslogtreecommitdiffstats
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
commitb9dc71e20d5b108dad37403fca4e94272a3148cb (patch)
treeb481abd11c476666aacec9177e66ba1a305ccf45 /internal.h
parenta9467905d1f0113d66fe40cf49cc4ce24e3df255 (diff)
downloadruby-b9dc71e20d5b108dad37403fca4e94272a3148cb.tar.gz
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;