summaryrefslogtreecommitdiff
path: root/probes_helper.h
diff options
context:
space:
mode:
Diffstat (limited to 'probes_helper.h')
-rw-r--r--probes_helper.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/probes_helper.h b/probes_helper.h
index 1393436b29..16d81b9ffb 100644
--- a/probes_helper.h
+++ b/probes_helper.h
@@ -2,7 +2,6 @@
#define RUBY_PROBES_HELPER_H
#include "ruby/ruby.h"
-#include "probes.h"
struct ruby_dtrace_method_hook_args {
const char *classname;
@@ -18,13 +17,13 @@ NOINLINE(int rb_dtrace_setup(rb_execution_context_t *, VALUE, ID, struct ruby_dt
#define RUBY_DTRACE_METHOD_HOOK(name, ec, klazz, id) \
do { \
if (UNLIKELY(RUBY_DTRACE_##name##_ENABLED())) { \
- struct ruby_dtrace_method_hook_args args; \
- if (rb_dtrace_setup(ec, klazz, id, &args)) { \
- RUBY_DTRACE_##name(args.classname, \
- args.methodname, \
- args.filename, \
- args.line_no); \
- } \
+ struct ruby_dtrace_method_hook_args args; \
+ if (rb_dtrace_setup(ec, klazz, id, &args)) { \
+ RUBY_DTRACE_##name(args.classname, \
+ args.methodname, \
+ args.filename, \
+ args.line_no); \
+ } \
} \
} while (0)