ruby-changes:58628
From: Koichi <ko1@a...>
Date: Fri, 8 Nov 2019 10:03:53 +0900 (JST)
Subject: [ruby-changes:58628] dad2abc69f (master): do not use __func__.
https://git.ruby-lang.org/ruby.git/commit/?id=dad2abc69f From dad2abc69fdd1af52df353b8604017bd6a5c6a99 Mon Sep 17 00:00:00 2001 From: Koichi Sasada <ko1@a...> Date: Fri, 8 Nov 2019 10:02:21 +0900 Subject: do not use __func__. Microsoft Visual Studio 12.0 doesn't support it. diff --git a/compile.c b/compile.c index 9735c50..08a7576 100644 --- a/compile.c +++ b/compile.c @@ -9769,9 +9769,9 @@ ibf_load_builtin(const struct ibf_load *load, ibf_offset_t *offset) https://github.com/ruby/ruby/blob/trunk/compile.c#L9769 } const struct rb_builtin_function *table = GET_VM()->builtin_function_table; - if (table == NULL) rb_bug(__func__); + if (table == NULL) rb_bug("ibf_load_builtin: table is not provided."); if (strncmp(table[i].name, name, len) != 0) { - rb_bug("%s mistach", __func__); + rb_bug("ibf_load_builtin: index (%d) mismatch (expect %s but %s).", i, name, table[i].name); } // fprintf(stderr, "load-builtin: name:%s(%d)\n", table[i].name, table[i].argc); -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/