mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-23 13:00:34 +02:00
Really disable stack underflow checks when VM_CHECK_UNDERFLOW == 0.
* libguile/vm-engine.h: Use '#if VM_CHECK_UNDERFLOW' instead of '#ifdef'.
This commit is contained in:
parent
5b7632331e
commit
1abe6ba5d8
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2001, 2009-2012, 2014 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 2001, 2009-2012, 2014, 2015 Free Software Foundation, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public License
|
||||
|
@ -284,7 +284,7 @@
|
|||
do { if (SCM_UNLIKELY (sp >= stack_limit)) goto handle_overflow; } while (0)
|
||||
|
||||
|
||||
#ifdef VM_CHECK_UNDERFLOW
|
||||
#if VM_CHECK_UNDERFLOW
|
||||
#define PRE_CHECK_UNDERFLOW(N) \
|
||||
VM_ASSERT (sp - (N) > SCM_FRAME_UPPER_ADDRESS (fp), vm_error_stack_underflow ())
|
||||
#define CHECK_UNDERFLOW() PRE_CHECK_UNDERFLOW (0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue