Skip to content

Commit

Permalink
format: formatting files
Browse files Browse the repository at this point in the history
  • Loading branch information
OEOTYAN committed Jan 3, 2025
1 parent 78526ff commit 1ed01cd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 4 additions & 0 deletions src/ll/api/base/Alias.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ struct TypedStorageImpl {
[[nodiscard]] T const& operator*() const& { return get(); }
[[nodiscard]] T&& operator*() && { return std::move(get()); }
[[nodiscard]] T const&& operator*() const&& { return std::move(get()); }
[[nodiscard]] operator T&() & { return get(); }
[[nodiscard]] operator T const&() const& { return get(); }
[[nodiscard]] operator T&&() && { return std::move(get()); }
[[nodiscard]] operator T const&&() const&& { return std::move(get()); }
};

template <size_t A, size_t S, class T>
Expand Down
5 changes: 1 addition & 4 deletions src/ll/api/memory/Memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,7 @@ constexpr auto addressCall(void const* address, auto&&... args) -> R {

template <class R = void, class... Args>
constexpr auto virtualCall(void const* self, ptrdiff_t vIndex, auto&&... args) -> R {
return (*(R(**)(void const*, Args...))(*(uintptr_t**)self + vIndex))(
self,
std::forward<decltype((args))>(args)...
);
return (*(R(**)(void const*, Args...))(*(uintptr_t**)self + vIndex))(self, std::forward<decltype((args))>(args)...);
}

template <class T>
Expand Down
6 changes: 3 additions & 3 deletions src/ll/core/CrashLogger_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,9 @@ static bool genMiniDumpFile(PEXCEPTION_POINTERS e) {

static LONG unhandledExceptionFilter(_In_ struct _EXCEPTION_POINTERS* e) {
try {
crashInfo.date = fmt::format("{:%Y-%m-%d_%H-%M-%S}", fmt::localtime(_time64(nullptr)));
crashInfo.settings = ll::getLeviConfig().modules.crashLogger;
crashInfo.path = file_utils::u8path(pl::pl_log_path) / u8"crash";
crashInfo.date = fmt::format("{:%Y-%m-%d_%H-%M-%S}", fmt::localtime(_time64(nullptr)));
crashInfo.settings = ll::getLeviConfig().modules.crashLogger;
crashInfo.path = file_utils::u8path(pl::pl_log_path) / u8"crash";
if (!std::filesystem::is_directory(crashInfo.path)) {
std::filesystem::create_directory(crashInfo.path);
}
Expand Down

0 comments on commit 1ed01cd

Please sign in to comment.