summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-09-15 00:13:46 +0200
committerSven Gothel <[email protected]>2020-09-15 00:13:46 +0200
commit1933103313ac871042a4e350a6d045156431df0c (patch)
treefd79b08c5547e34191a6efd637e0725308f9dcdd /api
parent62795b6204988dd56e61b0c8e6d8b1107c020cce (diff)
dbt_debug: Use namespace for macro resolution in case macro being used ex-namespace w/o 'using'
Diffstat (limited to 'api')
-rw-r--r--api/direct_bt/dbt_debug.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/direct_bt/dbt_debug.hpp b/api/direct_bt/dbt_debug.hpp
index b9b54f0e..29efc15a 100644
--- a/api/direct_bt/dbt_debug.hpp
+++ b/api/direct_bt/dbt_debug.hpp
@@ -66,7 +66,7 @@ namespace direct_bt {
void ERR_PRINT2(const char *file, const int line, const char * format, ...) noexcept;
/** Use for unconditional error messages, prefix '[elapsed_time] Error @ FILE:LINE: '. Function also appends last errno and strerror(errno). */
- #define ERR_PRINT(...) { ERR_PRINT2(__FILE__, __LINE__, __VA_ARGS__); }
+ #define ERR_PRINT(...) { direct_bt::ERR_PRINT2(__FILE__, __LINE__, __VA_ARGS__); }
/** Use for unconditional warning messages, prefix '[elapsed_time] Warning @ file:line: ' */
void WARN_PRINTv(const char *file, const int line, const char * format, va_list args) noexcept;
@@ -75,7 +75,7 @@ namespace direct_bt {
void WARN_PRINT2(const char *file, const int line, const char * format, ...) noexcept;
/** Use for unconditional warning messages, prefix '[elapsed_time] Warning @ FILE:LINE: ' */
- #define WARN_PRINT(...) { WARN_PRINT2(__FILE__, __LINE__, __VA_ARGS__); }
+ #define WARN_PRINT(...) { direct_bt::WARN_PRINT2(__FILE__, __LINE__, __VA_ARGS__); }
/** Use for unconditional plain messages, prefix '[elapsed_time] '. */
void PLAIN_PRINT(const char * format, ...) noexcept;