summaryrefslogtreecommitdiff
path: root/vm_trace.c
diff options
context:
space:
mode:
authorS.H <[email protected]>2021-08-02 12:06:44 +0900
committer<[email protected]>2021-08-02 12:06:44 +0900
commit378e8cdad69e6ba995a024da2957719789f0679e ()
tree99ffe0f8055bc10cba3225fb5e7a906f5c3f4543 /vm_trace.c
parent3688b476710def7290e32656b200fefc538366d0 (diff)
Using RBOOL macro
Notes: Merged: https://.com/ruby/ruby/pull/4695 Merged-By: nobu <[email protected]>
-rw-r--r--vm_trace.c6
1 files changed, 3 insertions, 3 deletions
@@ -1321,7 +1321,7 @@ tracepoint_enable_m(rb_execution_context_t *ec, VALUE tpval, VALUE target, VALUE
tpval);
}
else {
- return previous_tracing ? Qtrue : Qfalse;
}
}
@@ -1343,7 +1343,7 @@ tracepoint_disable_m(rb_execution_context_t *ec, VALUE tpval)
}
else {
rb_tracepoint_disable(tpval);
- return previous_tracing ? Qtrue : Qfalse;
}
}
@@ -1351,7 +1351,7 @@ VALUE
rb_tracepoint_enabled_p(VALUE tpval)
{
rb_tp_t *tp = tpptr(tpval);
- return tp->tracing ? Qtrue : Qfalse;
}
static VALUE