diff --git a/cmake/corsikaDefines.cmake b/cmake/corsikaDefines.cmake index 60cf7da9a930a6bb7b39e35678e8b7064c411f42..57673ca03b2e37d9f1d8748f7a172873d7303cde 100644 --- a/cmake/corsikaDefines.cmake +++ b/cmake/corsikaDefines.cmake @@ -24,7 +24,7 @@ set (CMAKE_CXX_FLAGS_COVERAGE "-g --coverage") set (CMAKE_EXE_LINKER_FLAGS_COVERAGE "--coverage") set (CMAKE_SHARED_LINKER_FLAGS_COVERAGE "--coverage") # set a flag to inform code that we are in debug mode -set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DDEBUG") +set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_C8_DEBUG_") #+++++++++++++++++++++++++++++ diff --git a/corsika/detail/framework/utility/CubicSolver.inl b/corsika/detail/framework/utility/CubicSolver.inl index 6baa0a39d3515453158c42ce09d580763d845882..425bb85a3b363dc281bb9a20a8a40acc248f27c8 100644 --- a/corsika/detail/framework/utility/CubicSolver.inl +++ b/corsika/detail/framework/utility/CubicSolver.inl @@ -254,7 +254,7 @@ namespace corsika { if (pre_opt.size()) { x1 = pre_opt[0]; //*std::max_element(pre_opt.begin(), pre_opt.end()); -#ifdef DEBUG +#ifdef _C8_DEBUG_ for (long double test_v : pre_opt) { CORSIKA_LOG_TRACE("test,andre x={} f(x)={}", test_v, cubic_function(test_v, a, b, c, d)); diff --git a/corsika/framework/core/Logging.hpp b/corsika/framework/core/Logging.hpp index 64fe792a6aa9d4c861a322659950907610442448..dd58cc538a1a70a1e3909f994de74e815c32fcab 100644 --- a/corsika/framework/core/Logging.hpp +++ b/corsika/framework/core/Logging.hpp @@ -33,7 +33,7 @@ #define SPDLOG_FUNCTION __PRETTY_FUNCTION__ // if this is a Debug build, include debug messages in objects -#ifdef DEBUG +#ifdef _C8_DEBUG_ // trace is the highest level of logging (ALL messages will be printed) #define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_TRACE #else // otherwise, remove everything but "error" and worse messages diff --git a/examples/corsika.cpp b/examples/corsika.cpp index ae3d3d0a1d135e8e2d2aeab6575c0cd00d0b6c21..fbff7d5dbf8466e7854e351c35ecc2adc9a445f7 100644 --- a/examples/corsika.cpp +++ b/examples/corsika.cpp @@ -177,7 +177,7 @@ int main(int argc, char** argv) { } else if (loglevel == "debug") { logging::set_level(logging::level::debug); } else if (loglevel == "trace") { -#ifndef DEBUG +#ifndef _C8_DEBUG_ CORSIKA_LOG_ERROR("trace log level requires a Debug build."); return 1; #endif diff --git a/examples/mars.cpp b/examples/mars.cpp index e6d77b1cf89154a5b18202137399bb37922a6f59..599e9c8da0c2093069d976ebccfcb56d3bb6c023 100644 --- a/examples/mars.cpp +++ b/examples/mars.cpp @@ -200,7 +200,7 @@ int main(int argc, char** argv) { } else if (loglevel == "debug") { logging::set_level(logging::level::debug); } else if (loglevel == "trace") { -#ifndef DEBUG +#ifndef _C8_DEBUG_ CORSIKA_LOG_ERROR("trace log level requires a Debug build."); return 1; #endif