summaryrefslogtreecommitdiffhomepage
path: root/src/gc.c
diff options
context:
space:
mode:
authorMasaki Muranaka <[email protected]>2013-01-07 15:28:05 +0900
committerMasaki Muranaka <[email protected]>2013-01-07 15:28:05 +0900
commit0f99322f27338d759b86551363a7275e53627a72 (patch)
treecb986834e252136d90c85ab10c858244ff35b0de /src/gc.c
parent83d91b935a1fd38289573aa84456e3d37901b83e (diff)
downloadmruby-0f99322f27338d759b86551363a7275e53627a72.tar.gz
mruby-0f99322f27338d759b86551363a7275e53627a72.zip
gc.c: Enable DEBUG(x) if GC_DEBUG is defined.
vm.c: Enable DEBUG(x) if VM_DEBUG is defined.
Diffstat (limited to 'src/gc.c')
-rw-r--r--src/gc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gc.c b/src/gc.c
index 472535925..816f258ad 100644
--- a/src/gc.c
+++ b/src/gc.c
@@ -147,8 +147,10 @@ gettimeofday_time(void)
#ifdef GC_DEBUG
#include <assert.h>
#define gc_assert(expect) assert(expect)
+#define DEBUG(x) (x)
#else
#define gc_assert(expect) ((void)0)
+#define DEBUG(x)
#endif
#define GC_STEP_SIZE 1024