dlls/ai_component.h
117118119120121122123124125126127128129130131132133134135136137138139140141
float GetLastThink( const char *szContext = NULL );
public:
#if defined(new)
#error
#endif
void *operator new( size_t nBytes )
{
MEM_ALLOC_CREDIT();
void *pResult = g_pMemAlloc->Alloc( nBytes );
memset( pResult, 0, nBytes );
return pResult;
};
void *operator new( size_t nBytes, int nBlockUse, const char *pFileName, int nLine )
{
MEM_ALLOC_CREDIT();
void *pResult = g_pMemAlloc->Alloc( nBytes, pFileName, nLine );
memset( pResult, 0, nBytes );
return pResult;
}
private:
CAI_BaseNPC *m_pOuter;
117118119120121122123124125126127128129130131132133134135136137138139140141142143
float GetLastThink( const char *szContext = NULL );
public:
#if defined(new) // --> Reworked by Mulchman 4/10/2006
//#error
#else
void *operator new( size_t nBytes )
{
void *pResult = ::operator new( nBytes );
memset( pResult, 0, nBytes );
return pResult;
};
#if defined(_DEBUG) || defined(USE_MEM_DEBUG)
void *operator new( size_t nBytes, int nBlockUse, const char *pFileName, int nLine )
{
void *pResult = ::operator new( nBytes, nBlockUse, pFileName, nLine );
memset( pResult, 0, nBytes );
return pResult;
}
#endif // defined(_DEBUG) || defined(USE_MEM_DEBUG)
#endif // defined(new) // <-- Reworked by Mulchman 4/10/2006
private:
CAI_BaseNPC *m_pOuter;