Skip to content

Commit

Permalink
Fixed compiler errors in nightly build workflow 11/01/2024 | 24w44a3
Browse files Browse the repository at this point in the history
  • Loading branch information
GamesTrap committed Nov 1, 2024
1 parent eed0517 commit 23fb9a9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 6 additions & 4 deletions TRAP/src/Core/Base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,12 @@ void operator delete[](void* ptr, std::align_val_t) noexcept

//-------------------------------------------------------------------------------------------------------------------//

// void operator delete(void* ptr, const usize) noexcept
// {
// FreeImpl(ptr);
// }
#if defined(__GNUC__) && !defined(__clang__)
void operator delete(void* ptr, const usize) noexcept
{
FreeImpl(ptr);
}
#endif /*defined(__GNUC__) && !defined(__clang__)*/

//-------------------------------------------------------------------------------------------------------------------//

Expand Down
4 changes: 3 additions & 1 deletion TRAP/src/Core/Base.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ void operator delete(void* ptr) noexcept;
void operator delete[](void* ptr) noexcept;
void operator delete(void* ptr, std::align_val_t alignment) noexcept;
void operator delete[](void* ptr, std::align_val_t alignment) noexcept;
// void operator delete(void* ptr, usize size) noexcept;
#if defined(__GNUC__) && !defined(__clang__)
void operator delete(void* ptr, usize size) noexcept;
#endif /*defined(__GNUC__) && !defined(__clang__)*/
void operator delete[](void* ptr, usize size) noexcept;
void operator delete(void* ptr, usize size, std::align_val_t alignment) noexcept;
void operator delete[](void* ptr, usize size, std::align_val_t alignment) noexcept;
Expand Down

0 comments on commit 23fb9a9

Please sign in to comment.