RUBY_CONST_ASSERT: use STATIC_ASSERT instead

Static assertions shall be done using STATIC_ASSERT these days.
This commit is contained in:
卜部昌平 2020-07-06 15:39:26 +09:00
parent 4b8170ce80
commit 215c6fa3d0
Notes: git 2020-07-10 12:24:06 +09:00
3 changed files with 11 additions and 23 deletions

View file

@ -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