mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-19 12:06:07 +08:00
Some includes can be used on Mac OS X now (bug 3515, r=ds).
This commit is contained in:
@ -2340,13 +2340,13 @@ bool KeyValues::ReadAsBinary( CUtlBuffer &buffer )
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: memory allocator
|
||||
//-----------------------------------------------------------------------------
|
||||
void *KeyValues::operator new( unsigned int iAllocSize )
|
||||
void *KeyValues::operator new( size_t iAllocSize )
|
||||
{
|
||||
MEM_ALLOC_CREDIT();
|
||||
return KeyValuesSystem()->AllocKeyValuesMemory(iAllocSize);
|
||||
}
|
||||
|
||||
void *KeyValues::operator new( unsigned int iAllocSize, int nBlockUse, const char *pFileName, int nLine )
|
||||
void *KeyValues::operator new( size_t iAllocSize, int nBlockUse, const char *pFileName, int nLine )
|
||||
{
|
||||
MemAlloc_PushAllocDbgInfo( pFileName, nLine );
|
||||
void *p = KeyValuesSystem()->AllocKeyValuesMemory(iAllocSize);
|
||||
|
Reference in New Issue
Block a user