diff options
author | Koichi Sasada <ko1@atdot.net> | 2020-05-29 11:19:44 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2020-05-29 11:25:45 +0900 |
commit | 6ba2d3e4c6958a214e13ac07c7bdb160b9c3f21f (patch) | |
tree | 2e90a1ec3e89b5eee5dc9a0279fa2d7f792b2e82 | |
parent | d32e2bb02d15008da008057fbd6b541662d52588 (diff) | |
download | ruby-6ba2d3e4c6958a214e13ac07c7bdb160b9c3f21f.tar.gz |
export debug utility functions
-rw-r--r-- | internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal.h b/internal.h index 01daa1d7db..da0dab5e7e 100644 --- a/internal.h +++ b/internal.h @@ -77,8 +77,11 @@ void rb_obj_info_dump(VALUE obj); void rb_obj_info_dump_loc(VALUE obj, const char *file, int line, const char *func); /* debug.c */ + +RUBY_SYMBOL_EXPORT_BEGIN void ruby_debug_breakpoint(void); PRINTF_ARGS(void ruby_debug_printf(const char*, ...), 1, 2); +RUBY_SYMBOL_EXPORT_END // show obj data structure without any side-effect #define rp(obj) rb_obj_info_dump_loc((VALUE)(obj), __FILE__, __LINE__, RUBY_FUNCTION_NAME_STRING) |