Changeset 2629 for XIOS3/trunk/src/exception.hpp
- Timestamp:
- 04/25/24 15:05:23 (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS3/trunk/src/exception.hpp
r2282 r2629 5 5 #include "xios_spl.hpp" 6 6 #include "object.hpp" 7 #include <boost_extract.hpp> 7 8 #include <iomanip> 8 9 #include <stdexcept> … … 59 60 #define FILE_NAME (std::strrchr("/" __FILE__, '/') + 1) 60 61 61 #define FUNCTION_NAME (StdString( BOOST_CURRENT_FUNCTION).length() > 100 ? \62 StdString( BOOST_CURRENT_FUNCTION).substr(0,100).append("...)") : BOOST_CURRENT_FUNCTION)62 #define FUNCTION_NAME (StdString(XIOS_CURRENT_FUNCTION).length() > 100 ? \ 63 StdString(XIOS_CURRENT_FUNCTION).substr(0,100).append("...)") : XIOS_CURRENT_FUNCTION) 63 64 64 65 #define INFO(x) \ 65 "In file \""<< FILE_NAME <<"\", function \"" << BOOST_CURRENT_FUNCTION <<"\", line " << __LINE__ << " -> " x << std::endl;66 "In file \""<< FILE_NAME <<"\", function \"" << XIOS_CURRENT_FUNCTION <<"\", line " << __LINE__ << " -> " x << std::endl; 66 67 67 68 #ifdef __XIOS_DEBUG
Note: See TracChangeset
for help on using the changeset viewer.