You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
881 B
36 lines
881 B
///////////////////////////////////////////////////////////////////////////////
|
|
// Copyright (C) Microsoft Corporation, 1998.
|
|
//
|
|
// rrmem.cpp
|
|
//
|
|
// Direct3D Reference Implementation - Memory functions
|
|
//
|
|
//
|
|
//
|
|
//
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
#include "pch.cpp"
|
|
#pragma hdrstop
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// RRAlloc method implementation
|
|
//
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
void *
|
|
RRAlloc::operator new(size_t s)
|
|
{
|
|
void* pMem = MEMALLOC( s );
|
|
_ASSERTa( NULL != pMem, "malloc failure", return NULL; );
|
|
return pMem;
|
|
}
|
|
|
|
void
|
|
RRAlloc::operator delete(void* p, size_t)
|
|
{
|
|
MEMFREE( p );
|
|
}
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////
|
|
// end
|