summaryrefslogtreecommitdiff
path: root/vm_trace.c
diff options
context:
space:
mode:
authorS.H <gamelinks007@gmail.com>2021-08-02 12:06:44 +0900
committerGitHub <noreply@github.com>2021-08-02 12:06:44 +0900
commit378e8cdad69e6ba995a024da2957719789f0679e (patch)
tree99ffe0f8055bc10cba3225fb5e7a906f5c3f4543 /vm_trace.c
parent3688b476710def7290e32656b200fefc538366d0 (diff)
Using RBOOL macro
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4695 Merged-By: nobu <nobu@ruby-lang.org>
Diffstat (limited to 'vm_trace.c')
-rw-r--r--vm_trace.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vm_trace.c b/vm_trace.c
index 457bdb0cad..398ca97de3 100644
--- a/vm_trace.c
+++ b/vm_trace.c
@@ -1321,7 +1321,7 @@ tracepoint_enable_m(rb_execution_context_t *ec, VALUE tpval, VALUE target, VALUE
tpval);
}
else {
- return previous_tracing ? Qtrue : Qfalse;
+ return RBOOL(previous_tracing);
}
}
@@ -1343,7 +1343,7 @@ tracepoint_disable_m(rb_execution_context_t *ec, VALUE tpval)
}
else {
rb_tracepoint_disable(tpval);
- return previous_tracing ? Qtrue : Qfalse;
+ return RBOOL(previous_tracing);
}
}
@@ -1351,7 +1351,7 @@ VALUE
rb_tracepoint_enabled_p(VALUE tpval)
{
rb_tp_t *tp = tpptr(tpval);
- return tp->tracing ? Qtrue : Qfalse;
+ return RBOOL(tp->tracing);
}
static VALUE