From 2110cca4313ebb902ca1f4f6ff0c389f743e60fc Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Tue, 16 Dec 2008 15:44:48 +0000 Subject: actually honor EIGEN_STACK_ALLOCATION. Can set it to 0 to disable stack alloc which guarantees that bad alloc throws exceptions if they are enabled. --- Eigen/src/Core/util/Macros.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Eigen/src/Core/util/Macros.h') diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h index c95030524..274d59057 100644 --- a/Eigen/src/Core/util/Macros.h +++ b/Eigen/src/Core/util/Macros.h @@ -116,6 +116,10 @@ using Eigen::ei_cos; #define EIGEN_RESTRICT __restrict +#ifndef EIGEN_STACK_ALLOCATION_LIMIT +#define EIGEN_STACK_ALLOCATION_LIMIT 16000000 +#endif + #ifndef EIGEN_DEFAULT_IO_FORMAT #define EIGEN_DEFAULT_IO_FORMAT Eigen::IOFormat() #endif -- cgit v1.2.3