mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Allow operator new and operator delete to be called when debugging memory
This commit is contained in:
parent
00644e7605
commit
843b49d56b
3 changed files with 1 additions and 6 deletions
|
@ -186,10 +186,9 @@ protected:
|
|||
public:
|
||||
CLASS_PROTOTYPE(ScriptThread);
|
||||
|
||||
#ifndef _DEBUG_MEM
|
||||
void *operator new(size_t size);
|
||||
void operator delete(void *ptr);
|
||||
#endif
|
||||
|
||||
ScriptThread(ScriptClass *scriptClass, unsigned char *pCodePos);
|
||||
virtual ~ScriptThread();
|
||||
|
||||
|
|
|
@ -49,10 +49,8 @@ public:
|
|||
public:
|
||||
CLASS_PROTOTYPE(ScriptClass);
|
||||
|
||||
#ifndef _DEBUG_MEM
|
||||
void *operator new(size_t size);
|
||||
void operator delete(void *ptr);
|
||||
#endif
|
||||
|
||||
ScriptClass(GameScript *gameScript, Listener *self);
|
||||
ScriptClass();
|
||||
|
|
|
@ -181,10 +181,8 @@ private:
|
|||
void HandleScriptException(ScriptException &exc);
|
||||
|
||||
public:
|
||||
#ifndef _DEBUG_MEM
|
||||
void *operator new(size_t size);
|
||||
void operator delete(void *ptr);
|
||||
#endif
|
||||
|
||||
ScriptVM(ScriptClass *scriptClass, unsigned char *pCodePos, ScriptThread *thread);
|
||||
~ScriptVM();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue