Undef DEBUG macro for log level property (#14897)

* Undef DEBUG macro for log level property

* Renamed define
This commit is contained in:
Ilya Churaev 2023-01-03 16:01:35 +04:00 committed by GitHub
parent 94662fc236
commit 40959a410c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -373,6 +373,11 @@ static constexpr Property<bool> enable_profiling{"PERF_COUNT"};
*/ */
namespace log { namespace log {
#ifdef DEBUG
# define _OV_WAS_DEBUG DEBUG
# undef DEBUG
#endif
/** /**
* @brief Enum to define possible log levels * @brief Enum to define possible log levels
* @ingroup ov_runtime_cpp_prop_api * @ingroup ov_runtime_cpp_prop_api
@ -433,6 +438,11 @@ inline std::istream& operator>>(std::istream& is, Level& level) {
* @ingroup ov_runtime_cpp_prop_api * @ingroup ov_runtime_cpp_prop_api
*/ */
static constexpr Property<Level> level{"LOG_LEVEL"}; static constexpr Property<Level> level{"LOG_LEVEL"};
#ifdef _OV_WAS_DEBUG
# define DEBUG _OV_WAS_DEBUG
# undef _OV_WAS_DEBUG
#endif
} // namespace log } // namespace log
/** /**