Leaked source code of windows server 2003
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.

29 lines
688 B

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1997 - 1998
  6. //
  7. // File: gndleak.cpp
  8. //
  9. //--------------------------------------------------------------------------
  10. //
  11. // Leak checking variables for common classes
  12. //
  13. #include <basetsd.h>
  14. #include "basics.h"
  15. #include "gmobj.h"
  16. LEAK_VAR_DEF(GNODE)
  17. LEAK_VAR_DEF(GEDGE)
  18. void GLNKEL :: ThrowInvalidClone ( const GLNKEL & t )
  19. {
  20. SZC szcTypeName = typeid(t).name();
  21. ZSTR zsMsg;
  22. zsMsg.Format("objects of type \'%s\' do not support cloning", szcTypeName);
  23. THROW_ASSERT( EC_INVALID_CLONE, zsMsg.Szc() );
  24. }