43 lines
830 B
C++
43 lines
830 B
C++
/***
|
|
Copyright (C) 2023 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
File: AuProcAddresses.cpp
|
|
Date: 2023-2-16
|
|
Author: Reece
|
|
***/
|
|
#include <RuntimeInternal.hpp>
|
|
#include "AuProcAddresses.hpp"
|
|
|
|
namespace Aurora
|
|
{
|
|
void InitProcAddresses()
|
|
{
|
|
static bool gDumbInitOnce {};
|
|
if (AuExchange(gDumbInitOnce, true))
|
|
{
|
|
return;
|
|
}
|
|
|
|
#if defined(AURORA_IS_MODERNNT_DERIVED)
|
|
InitNTAddresses();
|
|
#endif
|
|
|
|
#if defined(AURORA_IS_LINUX_DERIVED)
|
|
InitLinuxAddresses();
|
|
#endif
|
|
}
|
|
|
|
#if !defined(AURORA_HAS_SYS_ALLOC_LARGE)
|
|
|
|
void *SysAllocateLarge(AuUInt uLength)
|
|
{
|
|
return AuMemory::FAlloc<void *>(uLength, 32);
|
|
}
|
|
|
|
void SysAllocateFree(void *pBuffer, AuUInt uLength)
|
|
{
|
|
AuMemory::Free(pBuffer);
|
|
}
|
|
|
|
#endif
|
|
} |