Skip to content

Commit

Permalink
chore: maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
gottyduke committed Sep 7, 2023
1 parent 677e902 commit 4765515
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion CommonLibSF/include/SFSE/Impl/PCH.h
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ namespace SFSE
}

[[noreturn]] inline void report_and_fail(std::string_view a_msg,
std::source_location a_loc = std::source_location::current())
std::source_location a_loc = std::source_location::current())
{
report_and_error(a_msg, true, a_loc);
std::unreachable();
Expand Down
46 changes: 23 additions & 23 deletions CommonLibSF/include/SFSE/Logger.h
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
#pragma once

#define SFSE_MAKE_SOURCE_LOGGER(a_func, a_type) \
\
template <class... Args> \
struct [[maybe_unused]] a_func \
{ \
a_func() = delete; \
\
explicit a_func( \
fmt::format_string<Args...> a_fmt, \
Args&&... a_args, \
#define SFSE_MAKE_SOURCE_LOGGER(a_func, a_type) \
\
template <class... Args> \
struct [[maybe_unused]] a_func \
{ \
a_func() = delete; \
\
explicit a_func( \
fmt::format_string<Args...> a_fmt, \
Args&&... a_args, \
std::source_location a_loc = std::source_location::current()) \
{ \
spdlog::log( \
spdlog::source_loc{ \
a_loc.file_name(), \
static_cast<int>(a_loc.line()), \
a_loc.function_name() }, \
spdlog::level::a_type, \
a_fmt, \
std::forward<Args>(a_args)...); \
} \
}; \
\
template <class... Args> \
{ \
spdlog::log( \
spdlog::source_loc{ \
a_loc.file_name(), \
static_cast<int>(a_loc.line()), \
a_loc.function_name() }, \
spdlog::level::a_type, \
a_fmt, \
std::forward<Args>(a_args)...); \
} \
}; \
\
template <class... Args> \
a_func(fmt::format_string<Args...>, Args&&...) -> a_func<Args...>;

namespace SFSE::log
Expand Down

0 comments on commit 4765515

Please sign in to comment.