Undef DEBUG macro for log level property (#14897)
* Undef DEBUG macro for log level property * Renamed define
This commit is contained in:
parent
94662fc236
commit
40959a410c
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user