diff options
author | Michael Methner <mmethner@de.adit-jv.com> | 2023-05-05 11:06:49 +0200 |
---|---|---|
committer | Michael Methner <mmethner@de.adit-jv.com> | 2023-05-05 11:06:49 +0200 |
commit | e3c0347b99c866130b57a844292574cf8853c50a (patch) | |
tree | 4b8e32cac6f6ad0641e1ad992c0507ebdf5c8993 | |
parent | d391ca07219adab2611e9b385f8d52e9b6330c48 (diff) | |
download | DLT-daemon-fix_macro_while_instructions.tar.gz |
Fix while(0) in dlt_cpp_extension.hppfix_macro_while_instructions
Signed-off-by: Michael Methner <mmethner@de.adit-jv.com>
-rw-r--r-- | include/dlt/dlt_cpp_extension.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/dlt/dlt_cpp_extension.hpp b/include/dlt/dlt_cpp_extension.hpp index c2600e7..cd82896 100644 --- a/include/dlt/dlt_cpp_extension.hpp +++ b/include/dlt/dlt_cpp_extension.hpp @@ -203,7 +203,7 @@ static inline int32_t logToDltVariadic(DltContextData &log, First const &valueA, dlt_user_log_write_finish(&log);\ }\ }\ - while(0) + while(false) /** * @brief macro to write a log message with variable number of arguments and without the need to specify the type of log data. @@ -227,6 +227,6 @@ static inline int32_t logToDltVariadic(DltContextData &log, First const &valueA, dlt_user_log_write_finish(&log);\ }\ }\ - while(0) + while(false) #endif /* DLT_CPP_EXTENSION_HPP */ |