summaryrefslogtreecommitdiff
path: root/vm_exec.c
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-07-06 15:39:26 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-07-10 12:23:41 +0900
commit215c6fa3d012221d89420cbdf1416f65d7179a24 (patch)
treef7352818e6ab18fc0bab9725014cd9a09567eea8 /vm_exec.c
parent4b8170ce8027863b2085c105f4c4aaad0489328b (diff)
RUBY_CONST_ASSERT: use STATIC_ASSERT instead
Static assertions shall be done using STATIC_ASSERT these days.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3296
Diffstat (limited to 'vm_exec.c')
-rw-r--r--vm_exec.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/vm_exec.c b/vm_exec.c
index 2c7e22228a..ce2e053ee7 100644
--- a/vm_exec.c
+++ b/vm_exec.c
@@ -62,17 +62,6 @@ static void vm_insns_counter_count_insn(int insn) {}
#endif
/* #define DECL_SC_REG(r, reg) VALUE reg_##r */
-#if VM_DEBUG_STACKOVERFLOW
-NORETURN(static void vm_stack_overflow_for_insn(void));
-static void
-vm_stack_overflow_for_insn(void)
-{
- rb_bug("CHECK_VM_STACK_OVERFLOW_FOR_INSN: should not overflow here. "
- "Please contact ruby-core/dev with your (a part of) script. "
- "This check will be removed soon.");
-}
-#endif
-
#if !OPT_CALL_THREADED_CODE
static VALUE
vm_exec_core(rb_execution_context_t *ec, VALUE initial)