From 6f95270ede190d136ff64161f13ac4e663cbbfc9 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 6 Mar 2009 16:52:43 +0000 Subject: significantly reduce the default stack allocation limit which was much too high --- Eigen/src/Core/util/Macros.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Eigen') diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h index bc444b6b9..fad9a016e 100644 --- a/Eigen/src/Core/util/Macros.h +++ b/Eigen/src/Core/util/Macros.h @@ -178,7 +178,7 @@ using Eigen::ei_cos; #define EIGEN_RESTRICT __restrict #ifndef EIGEN_STACK_ALLOCATION_LIMIT -#define EIGEN_STACK_ALLOCATION_LIMIT 16000000 +#define EIGEN_STACK_ALLOCATION_LIMIT 1000000 #endif #ifndef EIGEN_DEFAULT_IO_FORMAT @@ -188,9 +188,14 @@ using Eigen::ei_cos; // just an empty macro ! #define EIGEN_EMPTY +// concatenate two tokens #define EIGEN_CAT2(a,b) a ## b #define EIGEN_CAT(a,b) EIGEN_CAT2(a,b) +// convert a token to a string +#define EIGEN_MAKESTRING2(a) #a +#define EIGEN_MAKESTRING(a) EIGEN_MAKESTRING2(a) + // format used in Eigen's documentation // needed to define it here as escaping characters in CMake add_definition's argument seems very problematic. #define EIGEN_DOCS_IO_FORMAT IOFormat(3, AlignCols, " ", "\n", "", "") -- cgit v1.2.3