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.

21 lines
473 B

  1. #ifndef __MSPPHEAP_H
  2. #define __MSPPHEAP_H
  3. #include "Rockall.hpp"
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. void * WINAPI MSPP_New(int s, int* Space = NULL, bool Zero = false);
  8. void WINAPI MSPP_Delete(void *p, int Size = NoSize);
  9. #ifdef __cplusplus
  10. }
  11. #endif
  12. #if defined(_USE_MSPPHEAP)
  13. inline void* __cdecl operator new( size_t sz ) { return MSPP_New(sz); }
  14. extern void __cdecl operator delete (void * pInstance ) { MSPP_Delete(pInstance); }
  15. #endif
  16. #endif // __MSPPHEAP_H