• R/O
  • SSH
  • HTTPS

eirrepo: Commit


Commit MetaInfo

Revision165 (tree)
Time2018-12-12 18:58:20
Authorquiret

Log Message

- removed CRTHeapAllocator from the unit test project

Change Summary

Incremental Difference

--- unittests/src/alloc_helper.hxx (revision 164)
+++ unittests/src/alloc_helper.hxx (revision 165)
@@ -3,6 +3,7 @@
33 #define _ALLOC_HELPERS_
44
55 #include <stdlib.h>
6+#include <sdk/eirutils.h>
67 #include <sdk/OSUtils.memheap.h>
78
89 extern NativeHeapAllocator globalHeapAlloc;
@@ -57,23 +58,4 @@
5758 struct is_object {};
5859 };
5960
60-struct CRTHeapAllocator
61-{
62- static inline void* Allocate( void *refMem, size_t memSize, size_t alignment )
63- {
64- return _aligned_malloc( memSize, alignment );
65- }
66-
67- static inline bool Resize( void *refMem, void *memPtr, size_t reqSize )
68- {
69- // The CRT cannot properly resize.
70- return false;
71- }
72-
73- static inline void Free( void *refMem, void *memPtr )
74- {
75- _aligned_free( memPtr );
76- }
77-};
78-
7961 #endif //_ALLOC_HELPERS_
\ No newline at end of file
Show on old repository browser