diff options
author | 卜部昌平 <[email protected]> | 2020-04-08 13:28:13 +0900 |
---|---|---|
committer | GitHub <[email protected]> | 2020-04-08 13:28:13 +0900 |
commit | 9e6e39c3512f7a962c44dc3729c98a0f8be90341 (patch) | |
tree | 901a22676d54d78240e450b64a8cd06eb1703910 /include/ruby/debug.h | |
parent | 5ac4bf2cd87e1eb5779ca5ae7f96a1a22e8436d9 (diff) |
Merge pull request #2991 from shyouhei/ruby.h
Split ruby.h
Notes
Notes:
Merged-By: shyouhei <[email protected]>
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 */ |