30 lines
659 B
C++
30 lines
659 B
C++
|
//+-------------------------------------------------------------------------
|
||
|
//
|
||
|
// 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() );
|
||
|
}
|
||
|
|