summaryrefslogtreecommitdiff
path: root/vm_exec.h
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.h
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.h')
-rw-r--r--vm_exec.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/vm_exec.h b/vm_exec.h
index 1be3f64576..1f2a052ff4 100644
--- a/vm_exec.h
+++ b/vm_exec.h
@@ -185,8 +185,7 @@ default: \
#define VM_DEBUG_STACKOVERFLOW 0
#if VM_DEBUG_STACKOVERFLOW
-#define CHECK_VM_STACK_OVERFLOW_FOR_INSN(cfp, margin) \
- WHEN_VM_STACK_OVERFLOWED(cfp, (cfp)->sp, margin) vm_stack_overflow_for_insn()
+#define CHECK_VM_STACK_OVERFLOW_FOR_INSN CHECK_VM_STACK_OVERFLOW
#else
#define CHECK_VM_STACK_OVERFLOW_FOR_INSN(cfp, margin)
#endif