From 8869d4be566fcff1ce8e6ead9f2c7d641b19cdad Mon Sep 17 00:00:00 2001 From: conrad Date: Thu, 1 Apr 2021 18:17:47 +1000 Subject: [PATCH] alllow printing of exeptions to be enabled/disabled --- include/armadillo_bits/config.hpp | 8 ++++++++ include/armadillo_bits/config.hpp.cmake | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/include/armadillo_bits/config.hpp b/include/armadillo_bits/config.hpp index 74a59306..31a1bf41 100644 --- a/include/armadillo_bits/config.hpp +++ b/include/armadillo_bits/config.hpp @@ -217,6 +217,10 @@ //// Comment out the above line if you don't want errors and warnings printed (eg. failed decompositions) #endif +#if !defined(ARMA_PRINT_EXCEPTIONS) +// #define ARMA_PRINT_EXCEPTIONS +#endif + #if !defined(ARMA_PRINT_HDF5_ERRORS) // #define ARMA_PRINT_HDF5_ERRORS #endif @@ -311,6 +315,10 @@ #undef ARMA_PRINT_ERRORS #endif +#if defined(ARMA_DONT_PRINT_EXCEPTIONS) + #undef ARMA_PRINT_EXCEPTIONS +#endif + #if defined(ARMA_DONT_PRINT_HDF5_ERRORS) #undef ARMA_PRINT_HDF5_ERRORS #endif diff --git a/include/armadillo_bits/config.hpp.cmake b/include/armadillo_bits/config.hpp.cmake index fd52c4c1..9b60a744 100644 --- a/include/armadillo_bits/config.hpp.cmake +++ b/include/armadillo_bits/config.hpp.cmake @@ -217,6 +217,10 @@ //// Comment out the above line if you don't want errors and warnings printed (eg. failed decompositions) #endif +#if !defined(ARMA_PRINT_EXCEPTIONS) +// #define ARMA_PRINT_EXCEPTIONS +#endif + #if !defined(ARMA_PRINT_HDF5_ERRORS) // #define ARMA_PRINT_HDF5_ERRORS #endif @@ -311,6 +315,10 @@ #undef ARMA_PRINT_ERRORS #endif +#if defined(ARMA_DONT_PRINT_EXCEPTIONS) + #undef ARMA_PRINT_EXCEPTIONS +#endif + #if defined(ARMA_DONT_PRINT_HDF5_ERRORS) #undef ARMA_PRINT_HDF5_ERRORS #endif