Skip to content

Commit

Permalink
Merge pull request #36 from apple1417/master
Browse files Browse the repository at this point in the history
def out unused logging functions when importing
  • Loading branch information
apple1417 authored Jun 30, 2024
2 parents df07e79 + 2ef1bc4 commit 6389629
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/unrealsdk/logging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ uint64_t unix_ms_now(void) {
return std::chrono::round<std::chrono::milliseconds>(time.time_since_epoch()).count();
}

#ifndef UNREALSDK_IMPORTING
/**
* @brief Gets a system clock time point from unix time milliseconds.
*
Expand Down Expand Up @@ -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 = "~ ";

Expand Down Expand Up @@ -253,6 +256,7 @@ std::string get_header(void) {
"location", LINE_WIDTH, "line", LEVEL_WIDTH, "v");
}

#endif
#pragma endregion

#pragma region Built-in Logger
Expand Down

0 comments on commit 6389629

Please sign in to comment.