Remove printf family from the mjit header

Linking printf family functions makes mjit objects to link
unnecessary code.
This commit is contained in:
Nobuyoshi Nakada 2021-09-09 23:21:06 +09:00
parent 967b9743fa
commit cd829bb078
Notes: git 2021-09-11 08:41:53 +09:00
10 changed files with 72 additions and 57 deletions

View file

@ -95,8 +95,8 @@ RUBY_SYMBOL_EXPORT_END
// same as rp, but add message header
#define rp_m(msg, obj) do { \
fprintf(stderr, "%s", (msg)); \
rb_obj_info_dump((VALUE)obj); \
fputs((msg), stderr); \
rb_obj_info_dump((VALUE)(obj)); \
} while (0)
// `ruby_debug_breakpoint()` does nothing,