mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05: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);
|
||||
|
||||
/* 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)
|
||||
|
|
Loading…
Add table
Reference in a new issue