blockmem.h 367 B

1234567891011121314151617181920
  1. #ifndef BLOCKMEM_H__
  2. #define BLOCKMEM_H__
  3. #if _MSC_VER >= 1000
  4. #pragma once
  5. #endif
  6. extern void* AllocBlock(unsigned long size);
  7. extern bool FreeBlock(void* pointer);
  8. extern void* Alloc(unsigned long size);
  9. extern bool Free(void* pointer);
  10. #if defined(CHECK_HEAP)
  11. extern void HeapCheck();
  12. #else
  13. #define HeapCheck()
  14. #endif
  15. #endif // BLOCKMEM_H__