diff options
Diffstat (limited to 'includes')
-rw-r--r-- | includes/Exceptions.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/includes/Exceptions.h b/includes/Exceptions.h index 799bfb6..53c4949 100644 --- a/includes/Exceptions.h +++ b/includes/Exceptions.h @@ -1,6 +1,7 @@ #pragma once #include <stdarg.h> +#include <stdlib.h> #include <typeinfo> #include <functional> @@ -65,6 +66,8 @@ class RessourceException : public GeneralException { void ExitHelper(const String & msg, const char * fmt = NULL, ...) printfwarning(2, 3); +namespace Alloc { + static inline void * malloc(size_t size) { void * r = ::malloc(size); @@ -92,6 +95,8 @@ static inline void * realloc(void * previous, size_t size) { return r; } +}; + static inline void AssertHelperInner(const String & msg, const char * details = NULL) throw (GeneralException) { #if defined(_MSC_VER) && defined(DEBUG) __debugbreak(); |