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.

35 lines
794 B

  1. //***************************************************************************
  2. //
  3. // NewThrow.H
  4. //
  5. // Module: Common new/delete w/throw
  6. //
  7. // Copyright (c) 1998-2001 Microsoft Corporation, All Rights Reserved
  8. //
  9. //***************************************************************************
  10. #pragma once
  11. #include <eh.h>
  12. void * __cdecl operator new( size_t n);
  13. void* __cdecl operator new[]( size_t n);
  14. void __cdecl operator delete( void *ptr );
  15. void __cdecl operator delete[]( void *ptr );
  16. //taken from new.h
  17. #ifndef __PLACEMENT_NEW_INLINE
  18. #define __PLACEMENT_NEW_INLINE
  19. inline void *__cdecl operator new(size_t, void *_P)
  20. {return (_P); }
  21. #if _MSC_VER >= 1200
  22. inline void __cdecl operator delete(void *, void *)
  23. {return; }
  24. #endif
  25. #endif