export debug utility functions
This commit is contained in:
parent
d32e2bb02d
commit
6ba2d3e4c6
@ -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…
x
Reference in New Issue
Block a user