Leviathan  0.8.0.0
Leviathan game engine
OutOfMemoryHandler.h
Go to the documentation of this file.
1 #pragma once
2 // ------------------------------------ //
3 #include "Include.h"
4 #include <new>
5 
6 #define OUTOFMEMORY_REQUIREDMEMORY_AMOUNT 1000
7 
8 namespace Leviathan{
9 
11  public:
14 
16 
17  DLLEXPORT void HandleException(std::bad_alloc &except);
18 
19  private:
20  static OutOfMemoryHandler* staticinstance;
21 
23  char* ReservedMemory;
24  };
25 
26 }
27 
static DLLEXPORT OutOfMemoryHandler * Get()
DLLEXPORT void HandleException(std::bad_alloc &except)
#define DLLEXPORT
Definition: Include.h:84
The access mask controls which registered functions and classes a script sees.
Definition: GameModule.h:12