From cd829bb078e6a3486d9b5ea57fc5111d289c1860 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 9 Sep 2021 23:21:06 +0900 Subject: Remove printf family from the mjit header Linking printf family functions makes mjit objects to link unnecessary code. --- internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal.h') diff --git a/internal.h b/internal.h index 8e5183aba0..8c116f85d7 100644 --- a/internal.h +++ b/internal.h @@ -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, -- cgit v1.2.1