aboutsummaryrefslogtreecommitdiffstats
path: root/include/ruby/defines.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-18 07:03:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-18 07:03:15 +0000
commitb3b7cd5f0ea597dfdf4321b36bb59c5780757963 (patch)
treea48ae279c9d42bc40c37717a69627cf54a1b61ac /include/ruby/defines.h
parent4c7c46b6af84efab1848ae21896ad7264aba6d79 (diff)
downloadruby-b3b7cd5f0ea597dfdf4321b36bb59c5780757963.tar.gz
* include/ruby/defines.h (TRUE, FALSE): for internal use.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/defines.h')
-rw-r--r--include/ruby/defines.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/ruby/defines.h b/include/ruby/defines.h
index 50b60c60e1..0944c77e9f 100644
--- a/include/ruby/defines.h
+++ b/include/ruby/defines.h
@@ -197,6 +197,18 @@ void xfree(void*);
#ifdef RUBY_EXPORT
#undef RUBY_EXTERN
+
+#ifndef FALSE
+# define FALSE 0
+#elif FALSE
+# error FALSE must be false
+#endif
+#ifndef TRUE
+# define TRUE 1
+#elif !TRUE
+# error TRUE must be true
+#endif
+
#endif
#ifndef RUBY_EXTERN