summaryrefslogtreecommitdiff
path: root/include/ruby/internal/event.h
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2023-08-01 17:25:20 +0900
committerKoichi Sasada <ko1@atdot.net>2023-08-01 22:46:17 +0900
commitd68c01fd314ebd6dc1d89c95a2734fad4f0953b0 (patch)
treeb8d8794f59990f635eaf984119519f0a9cd51bd1 /include/ruby/internal/event.h
parentf11ac06337fc56104172c3241393fd95d3a6c60d (diff)
support `rescue` event for TracePoint
fix [Feature #19572]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/8150
Diffstat (limited to 'include/ruby/internal/event.h')
-rw-r--r--include/ruby/internal/event.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ruby/internal/event.h b/include/ruby/internal/event.h
index aeedc6ad1f..1d194ed618 100644
--- a/include/ruby/internal/event.h
+++ b/include/ruby/internal/event.h
@@ -58,6 +58,7 @@
#define RUBY_EVENT_THREAD_END 0x0800 /**< Encountered an end of a thread. */
#define RUBY_EVENT_FIBER_SWITCH 0x1000 /**< Encountered a `Fiber#yield`. */
#define RUBY_EVENT_SCRIPT_COMPILED 0x2000 /**< Encountered an `eval`. */
+#define RUBY_EVENT_RESCUE 0x4000 /**< Encountered a `rescue` statement. */
#define RUBY_EVENT_TRACEPOINT_ALL 0xffff /**< Bitmask of extended events. */
/** @} */