mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
RUBY_CONST_ASSERT: use STATIC_ASSERT instead
Static assertions shall be done using STATIC_ASSERT these days.
This commit is contained in:
parent
4b8170ce80
commit
215c6fa3d0
Notes:
git
2020-07-10 12:24:06 +09:00
3 changed files with 11 additions and 23 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue