File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1111
1212#include " StdInc.h"
1313
14- namespace mta ::memory
14+ namespace mta
15+ {
16+ namespace memory
1517{
1618 constexpr bool is_power_of_two (std::size_t value) noexcept
1719 {
@@ -22,7 +24,7 @@ namespace mta::memory
2224
2325 // Safe aligned memory allocation replacement for CMemoryMgr::MallocAlign
2426 // Must match original GTA:SA behavior exactly - stores original pointer at result-4
25- [[nodiscard]] void * SafeMallocAlign (std::size_t size, std::size_t alignment) noexcept
27+ void * SafeMallocAlign (std::size_t size, std::size_t alignment) noexcept
2628 {
2729 // Validate alignment FIRST to prevent undefined behavior in calculations
2830 if (alignment == 0 || !is_power_of_two (alignment) || alignment > 8192 )
@@ -116,7 +118,7 @@ namespace mta::memory
116118 }
117119
118120 // VirtualAlloc implementation for large allocations
119- [[nodiscard]] void * SafeMallocAlignVirtual (std::size_t size, std::size_t alignment) noexcept
121+ void * SafeMallocAlignVirtual (std::size_t size, std::size_t alignment) noexcept
120122 {
121123 // Validate parameters first to prevent undefined behavior
122124 if (alignment == 0 || !is_power_of_two (alignment) || alignment > 8192 )
@@ -282,7 +284,7 @@ namespace mta::memory
282284 // Ignore exceptions in free - standard behavior
283285 }
284286 }
285- } // namespace mta::memory
287+ } // namespace mta
286288
287289// Hook constants
288290#define HOOKPOS_CMemoryMgr_MallocAlign 0x72F4C0
You can’t perform that action at this time.
0 commit comments