windows-nt/Source/XPSP1/NT/enduser/troubleshoot/bn/gndleak.cpp

30 lines
659 B
C++
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
//+-------------------------------------------------------------------------
//
// Microsoft Windows
//
// Copyright (C) Microsoft Corporation, 1997 - 1998
//
// File: gndleak.cpp
//
//--------------------------------------------------------------------------
//
// Leak checking variables for common classes
//
#include <basetsd.h>
#include "basics.h"
#include "gmobj.h"
LEAK_VAR_DEF(GNODE)
LEAK_VAR_DEF(GEDGE)
void GLNKEL :: ThrowInvalidClone ( const GLNKEL & t )
{
SZC szcTypeName = typeid(t).name();
ZSTR zsMsg;
zsMsg.Format("objects of type \'%s\' do not support cloning", szcTypeName);
THROW_ASSERT( EC_INVALID_CLONE, zsMsg.Szc() );
}