void ValidateSpew( CValidator &validator ) { validator.Push( _T("Spew globals"), NULL, _T("Global") ); validator.ClaimMemory( s_pSpewGroups ); validator.Pop( ); }
//----------------------------------------------------------------------------- // Purpose: Ensure that all of our internal structures are consistent, and // account for all memory that we've allocated. // Input: validator - Our global validator object // pchName - Our name (typically a member var in our container) //----------------------------------------------------------------------------- void CVariableBitStringBase::Validate( CValidator &validator, const char *pchName ) { validator.Push( "CVariableBitStringBase", this, pchName ); if ( m_numInts > 1 ) { validator.ClaimMemory( m_pInt ); } validator.Pop(); }
void CUtlMemoryBase::Validate( CValidator &validator, const char *pchName ) { #ifdef _WIN32 validator.Push( typeid(*this).raw_name(), this, pchName ); #else validator.Push( typeid(*this).name(), this, pchName ); #endif if ( NULL != m_pMemory ) validator.ClaimMemory( m_pMemory ); validator.Pop(); }