diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2011-02-06 12:51:42 -0500 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2011-02-06 12:51:42 -0500 |
commit | 9105e62d0a39d3a3e7864622fed5c393b25693a6 (patch) | |
tree | f4ac7e3413410c06f0559f80e1fbdb156733d556 /Eigen | |
parent | 02ee26a3a51675969016bab4e3e406d58b0979b6 (diff) |
introduce EIGEN_MAKING_DOCS to tell whether we're compiling the docs examples
Diffstat (limited to 'Eigen')
-rw-r--r-- | Eigen/src/Core/util/Macros.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h index b1bdea44e..dd28b2bfc 100644 --- a/Eigen/src/Core/util/Macros.h +++ b/Eigen/src/Core/util/Macros.h @@ -232,8 +232,14 @@ #endif #ifndef EIGEN_DEFAULT_IO_FORMAT +#ifdef EIGEN_MAKING_DOCS +// 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_DEFAULT_IO_FORMAT Eigen::IOFormat(3, 0, " ", "\n", "", "") +#else #define EIGEN_DEFAULT_IO_FORMAT Eigen::IOFormat() #endif +#endif // just an empty macro ! #define EIGEN_EMPTY @@ -246,10 +252,6 @@ #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, 0, " ", "\n", "", "") - #if defined(_MSC_VER) && (!defined(__INTEL_COMPILER)) #define EIGEN_INHERIT_ASSIGNMENT_EQUAL_OPERATOR(Derived) \ using Base::operator =; |