diff --git a/test/emul/Logging.cpp b/test/emul/Logging.cpp new file mode 100644 index 00000000..8c12eaab --- /dev/null +++ b/test/emul/Logging.cpp @@ -0,0 +1,3 @@ +#include "Logging.h" + +Logging logging; diff --git a/test/emul/Logging.h b/test/emul/Logging.h index 49388f3e..74088a4c 100644 --- a/test/emul/Logging.h +++ b/test/emul/Logging.h @@ -1,9 +1,9 @@ -#ifndef LOGGING_H -#define LOGGING_H +#pragma once #include #include +namespace test { class Logging { public: static void printf(const char* format, ...) { @@ -14,11 +14,9 @@ class Logging { } static void println(const char* message) { printf("%s\n", message); } - static void print(const char* message) { printf("%s", message); } }; +} // namespace test -// Global logging instance +using Logging = test::Logging; extern Logging logging; - -#endif