mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-31 09:20:59 +00:00
- new section builder.
This commit is contained in:
parent
9397eb6a19
commit
ad018db80a
5 changed files with 518 additions and 44 deletions
|
@ -117,6 +117,14 @@ void *FMemArena::Alloc(size_t size)
|
|||
return iAlloc((size + 15) & ~15);
|
||||
}
|
||||
|
||||
void* FMemArena::Calloc(size_t size)
|
||||
{
|
||||
size = (size + 15) & ~15;
|
||||
auto mem = iAlloc(size);
|
||||
memset(mem, 0, size);
|
||||
return mem;
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// FMemArena :: FreeAll
|
||||
|
|
|
@ -44,6 +44,7 @@ public:
|
|||
~FMemArena();
|
||||
|
||||
void *Alloc(size_t size);
|
||||
void* Calloc(size_t size);
|
||||
void FreeAll();
|
||||
void FreeAllBlocks();
|
||||
FString DumpInfo();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue