diff options
author | Nobuyoshi Nakada <[email protected]> | 2021-09-09 23:21:06 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2021-09-11 08:41:32 +0900 |
commit | cd829bb078e6a3486d9b5ea57fc5111d289c1860 (patch) | |
tree | f1c903880d0ed454250f95d95a6e6d765a899796 /string.c | |
parent | 967b9743faac0b55a3d8deb176a08fdff449bba8 (diff) |
Remove printf family from the mjit header
Linking printf family functions makes mjit objects to link
unnecessary code.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4820
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -223,6 +223,16 @@ rb_str_make_independent(VALUE str) } } +void +rb_debug_rstring_null_ptr(const char *func) +{ + fprintf(stderr, "%s is returning NULL!! " + "SIGSEGV is highly expected to follow immediately. " + "If you could reproduce, attach your debugger here, " + "and look at the passed string.", + func); +} + /* symbols for [up|down|swap]case/capitalize options */ static VALUE sym_ascii, sym_turkic, sym_lithuanian, sym_fold; |