diff options
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -2754,6 +2754,15 @@ class_prefix(self, cpath) NORETURN(static void return_jump _((VALUE))); NORETURN(static void break_jump _((VALUE))); +NORETURN(static void unknown_node _((NODE *))); + +static void +unknown_node(node) + NODE *volatile node; +{ + ruby_current_node = 0; + rb_bug("unknown node type %d", nd_type(node)); +} static VALUE rb_eval(self, n) @@ -3960,7 +3969,7 @@ rb_eval(self, n) goto again; default: - rb_bug("unknown node type %d", nd_type(node)); + unknown_node(node); } finish: CHECK_INTS; @@ -5758,7 +5767,7 @@ rb_call0(klass, recv, id, oid, argc, argv, body, nosuper) break; default: - rb_bug("unknown node type %d", nd_type(body)); + unknown_node(body); break; } POP_FRAME(); |