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.

28 lines
690 B

  1. /* File: D:\WACKER\tdll\mc.h (Created: 30-Nov-1993)
  2. *
  3. * Copyright 1994 by Hilgraeve Inc. -- Monroe, MI
  4. * All rights reserved
  5. *
  6. * $Revision: 3 $
  7. * $Date: 11/19/01 1:35p $
  8. */
  9. #if !defined(INCL_MC)
  10. #define INCL_MC
  11. #include "assert.h"
  12. // Use this file instead of malloc. Makes include Smartheap easier.
  13. //
  14. #if defined(NDEBUG) || defined(NO_SMARTHEAP)
  15. #include <malloc.h>
  16. #else
  17. #define MEM_DEBUG 1
  18. //#include <nih\shmalloc.h>
  19. #include <malloc.h>
  20. #endif
  21. #define MemCopy(_dst,_src,_cb) { if ( (size_t)(_cb) == (size_t)0 || (_dst) == NULL || (_src) == NULL ) { assert(FALSE); } else { memcpy(_dst,_src,(size_t)(_cb)); } }
  22. #endif