aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/util/Macros.h
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-12-16 15:44:48 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-12-16 15:44:48 +0000
commit2110cca4313ebb902ca1f4f6ff0c389f743e60fc (patch)
tree1529ff2ea26d63e6a4ed6365e0a5cf784a5085bd /Eigen/src/Core/util/Macros.h
parent38b83b4157a19ed913b0c5f884629930348cc716 (diff)
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.
Diffstat (limited to 'Eigen/src/Core/util/Macros.h')
-rw-r--r--Eigen/src/Core/util/Macros.h4
1 files changed, 4 insertions, 0 deletions
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