Files
Miguel Cox Caballero a675d0e45b feat(libSceLibcInternal): implement the aligned nothrow array new and the aligned array delete
NIDs s2eGsgUF9vk (_ZnamSt11align_val_tRKSt9nothrow_t) and v09ZcAhZzSc
(_ZdaPvSt11align_val_t) forward to the libc exports of the same names
instead of throwing.
2026-11-01 03:46:44 +01:00

20 lines
726 B
C++

#include "prx/libSceLibcInternal/include/Api.hpp"
#include "prx/libc/include/Api.hpp"
#include "prx/libc/include/General.hpp"
#include "SceTypes.hpp"
#include <cstddef>
extern "C" {
void* APS5_VABI sceLibcInternalAlignedArrayNewNothrow_nid_no_patch(std::size_t size, std::size_t alignment, const void* tag) noexcept {
return _ZnamSt11align_val_tRKSt9nothrow_t_nid_postfix(size, alignment, tag);
}
APS5_EXPORT("s2eGsgUF9vk", sceLibcInternalAlignedArrayNewNothrow_nid_no_patch);
void APS5_VABI sceLibcInternalAlignedArrayDelete_nid_no_patch(void* pointer, std::size_t alignment) {
_ZdaPvSt11align_val_t_nid_postfix(pointer, alignment);
}
APS5_EXPORT("v09ZcAhZzSc", sceLibcInternalAlignedArrayDelete_nid_no_patch);
}