Allow operator new and operator delete to be called when debugging memory

This commit is contained in:
smallmodel 2023-08-19 02:19:01 +02:00
parent 00644e7605
commit 843b49d56b
No known key found for this signature in database
GPG key ID: A96F163ED4891440
3 changed files with 1 additions and 6 deletions

View file

@ -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();