[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 01/01: Really disable stack underflow checks when VM_CHE
From: |
Ludovic Courtès |
Subject: |
[Guile-commits] 01/01: Really disable stack underflow checks when VM_CHECK_UNDERFLOW == 0. |
Date: |
Thu, 22 Jan 2015 14:25:56 +0000 |
civodul pushed a commit to branch stable-2.0
in repository guile.
commit 1abe6ba5d8ab3fd84d55ea2494d3cea67d8b0474
Author: Ludovic Courtès <address@hidden>
Date: Thu Jan 22 13:50:49 2015 +0100
Really disable stack underflow checks when VM_CHECK_UNDERFLOW == 0.
* libguile/vm-engine.h: Use '#if VM_CHECK_UNDERFLOW' instead of
'#ifdef'.
---
libguile/vm-engine.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libguile/vm-engine.h b/libguile/vm-engine.h
index 178828c..0ebb51b 100644
--- a/libguile/vm-engine.h
+++ b/libguile/vm-engine.h
@@ -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)