mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
export debug utility functions
This commit is contained in:
parent
d32e2bb02d
commit
6ba2d3e4c6
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
void rb_obj_info_dump_loc(VALUE obj, const char *file, int line, const char *func);
|
||||||
|
|
||||||
/* debug.c */
|
/* debug.c */
|
||||||
|
|
||||||
|
RUBY_SYMBOL_EXPORT_BEGIN
|
||||||
void ruby_debug_breakpoint(void);
|
void ruby_debug_breakpoint(void);
|
||||||
PRINTF_ARGS(void ruby_debug_printf(const char*, ...), 1, 2);
|
PRINTF_ARGS(void ruby_debug_printf(const char*, ...), 1, 2);
|
||||||
|
RUBY_SYMBOL_EXPORT_END
|
||||||
|
|
||||||
// show obj data structure without any side-effect
|
// show obj data structure without any side-effect
|
||||||
#define rp(obj) rb_obj_info_dump_loc((VALUE)(obj), __FILE__, __LINE__, RUBY_FUNCTION_NAME_STRING)
|
#define rp(obj) rb_obj_info_dump_loc((VALUE)(obj), __FILE__, __LINE__, RUBY_FUNCTION_NAME_STRING)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue