Source code of Windows XP (NT5)
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.

62 lines
817 B

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. purecall.cpp
  5. Abstract:
  6. This function serves to avoid linking CRT code like assert etc.
  7. we really don;t do anything when pure virtual function is not redefined
  8. Author:
  9. Vlad Sadovsky (vlads) 26-Jan-1997
  10. Revision History:
  11. 26-Jan-1997 VladS created
  12. --*/
  13. #include "cplusinc.h"
  14. #include "sticomm.h"
  15. extern "C" {
  16. #ifdef WINNT
  17. int __cdecl _purecall(void)
  18. {
  19. #ifdef DEBUG
  20. DebugBreak();
  21. #endif
  22. return(FALSE);
  23. }
  24. #endif
  25. int __cdecl atexit(void (__cdecl *)(void))
  26. {
  27. return 0;
  28. }
  29. };
  30. #if 0
  31. //
  32. // Overloaded allocation operators
  33. //
  34. inline void * __cdecl operator new(unsigned int size)
  35. {
  36. return (void *)LocalAlloc(LPTR,size);
  37. }
  38. inline void __cdecl operator delete(void *ptr)
  39. {
  40. LocalFree(ptr);
  41. }
  42. #endif