mirror of
https://github.com/thunderbrewhq/common.git
synced 2025-12-12 11:12:29 +00:00
chore(objectalloc): specify parameter name
This commit is contained in:
parent
1da79e35bf
commit
92752bd339
4 changed files with 6 additions and 6 deletions
|
|
@ -3,7 +3,7 @@
|
|||
#include <storm/Error.hpp>
|
||||
#include <storm/String.hpp>
|
||||
|
||||
int32_t ObjectAlloc(uint32_t heapId, uint32_t* memHandle, void** objectPtr, bool a4) {
|
||||
int32_t ObjectAlloc(uint32_t heapId, uint32_t* memHandle, void** objectPtr, bool zero) {
|
||||
STORM_ASSERT(memHandle);
|
||||
|
||||
*memHandle = 0;
|
||||
|
|
@ -15,7 +15,7 @@ int32_t ObjectAlloc(uint32_t heapId, uint32_t* memHandle, void** objectPtr, bool
|
|||
uint32_t index;
|
||||
void* object;
|
||||
|
||||
if (globals->objects[heapId].New(&index, &object, a4)) {
|
||||
if (globals->objects[heapId].New(&index, &object, zero)) {
|
||||
if (objectPtr) {
|
||||
*objectPtr = object;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include <cstdint>
|
||||
|
||||
int32_t ObjectAlloc(uint32_t heapId, uint32_t* memHandle, void** objectPtr, bool a4);
|
||||
int32_t ObjectAlloc(uint32_t heapId, uint32_t* memHandle, void** objectPtr, bool zero);
|
||||
|
||||
uint32_t ObjectAllocAddHeap(uint32_t objectSize, uint32_t objsPerBlock, const char* name, bool a4);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#include "common/objectalloc/CObjectHeapList.hpp"
|
||||
#include "storm/Error.hpp"
|
||||
|
||||
int32_t CObjectHeapList::New(uint32_t* index, void** a3, bool a4) {
|
||||
int32_t CObjectHeapList::New(uint32_t* index, void** a3, bool zero) {
|
||||
CObjectHeap* heap = nullptr;
|
||||
|
||||
if (this->uint24 < this->m_heaps.Count()) {
|
||||
|
|
@ -24,7 +24,7 @@ int32_t CObjectHeapList::New(uint32_t* index, void** a3, bool a4) {
|
|||
}
|
||||
}
|
||||
|
||||
if (!heap->New(this->m_objSize, this->m_objsPerBlock, index, this->m_heapName, a3, a4)) {
|
||||
if (!heap->New(this->m_objSize, this->m_objsPerBlock, index, this->m_heapName, a3, zero)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ class CObjectHeapList {
|
|||
uint8_t char84 = 1;
|
||||
|
||||
// Member functions
|
||||
int32_t New(uint32_t* index, void** a3, bool a4);
|
||||
int32_t New(uint32_t* index, void** a3, bool zero);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue