summaryrefslogtreecommitdiff
path: root/yjit_iface.c
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2021-09-14 15:13:15 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:40 -0400
commitbc7652998eb0f05379ba4247ab5202dc853496fa (patch)
treedcfcf35a3bdad37b20c10f3bffda3852c7d32662 /yjit_iface.c
parent0ee8c606626cd3f92a07a4b1ae7ab546e22031ab (diff)
Fix warnings about redefining YJIT_STATS
Follow up for ecb5b383a0c17550b9b27663005049ddac871edb. Now that YJIT_STATS is defined in yjit.h, it shoudl be the only place that defines it.
Diffstat (limited to 'yjit_iface.c')
-rw-r--r--yjit_iface.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/yjit_iface.c b/yjit_iface.c
index dc38b57b5c..42f22f3939 100644
--- a/yjit_iface.c
+++ b/yjit_iface.c
@@ -24,13 +24,8 @@ static VALUE cYjitDisasmInsn;
static VALUE mYjit;
static VALUE cYjitBlock;
-#if RUBY_DEBUG
-# define YJIT_STATS 1
+#if YJIT_STATS
static VALUE cYjitCodeComment;
-#else
-# ifndef YJIT_STATS
-# define YJIT_STATS 0
-# endif
#endif
#if YJIT_STATS