aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/ruby/ruby.h3
-rw-r--r--internal.h5
2 files changed, 1 insertions, 7 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h
index b1ac0c60c4..d6072bca66 100644
--- a/include/ruby/ruby.h
+++ b/include/ruby/ruby.h
@@ -1076,9 +1076,6 @@ struct RFile {
struct rb_io_t *fptr;
};
-#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))
-
struct RData {
struct RBasic basic;
void (*dmark)(void*);
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;