From 2ef1bc4d23f9802de8efa6984248fa65b19dfcb2 Mon Sep 17 00:00:00 2001 From: apple1417 Date: Sun, 30 Jun 2024 18:29:36 +1200 Subject: [PATCH] def out unused logging functions when importing whoops --- src/unrealsdk/logging.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/unrealsdk/logging.cpp b/src/unrealsdk/logging.cpp index fc2f788..ee22b5b 100644 --- a/src/unrealsdk/logging.cpp +++ b/src/unrealsdk/logging.cpp @@ -100,6 +100,7 @@ uint64_t unix_ms_now(void) { return std::chrono::round(time.time_since_epoch()).count(); } +#ifndef UNREALSDK_IMPORTING /** * @brief Gets a system clock time point from unix time milliseconds. * @@ -174,10 +175,12 @@ Level get_level_from_string(std::string_view str) { return Level::INVALID; } +#endif #pragma endregion #pragma region Formatting +#ifndef UNREALSDK_IMPORTING const std::string TRUNCATION_PREFIX = "~ "; @@ -253,6 +256,7 @@ std::string get_header(void) { "location", LINE_WIDTH, "line", LEVEL_WIDTH, "v"); } +#endif #pragma endregion #pragma region Built-in Logger