diff options
Diffstat (limited to 'include/ruby/debug.h')
-rw-r--r-- | include/ruby/debug.h | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/include/ruby/debug.h b/include/ruby/debug.h index 8a831e61ab..0b0e82924b 100644 --- a/include/ruby/debug.h +++ b/include/ruby/debug.h @@ -12,14 +12,10 @@ #ifndef RB_DEBUG_H #define RB_DEBUG_H 1 -#if defined(__cplusplus) -extern "C" { -#if 0 -} /* satisfy cc-mode */ -#endif -#endif +#include "ruby/3/dllexport.h" +#include "ruby/3/event.h" -RUBY_SYMBOL_EXPORT_BEGIN +RUBY3_SYMBOL_EXPORT_BEGIN() /* Note: This file contains experimental APIs. */ /* APIs can be replaced at Ruby 2.0.1 or later */ @@ -103,13 +99,6 @@ typedef enum { void rb_add_event_hook2(rb_event_hook_func_t func, rb_event_flag_t events, VALUE data, rb_event_hook_flag_t hook_flag); void rb_thread_add_event_hook2(VALUE thval, rb_event_hook_func_t func, rb_event_flag_t events, VALUE data, rb_event_hook_flag_t hook_flag); -RUBY_SYMBOL_EXPORT_END - -#if defined(__cplusplus) -#if 0 -{ /* satisfy cc-mode */ -#endif -} /* extern "C" { */ -#endif +RUBY3_SYMBOL_EXPORT_END() #endif /* RUBY_DEBUG_H */ |