1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-08 13:11:49 +00:00

Add operator new/delete in IClient/IServer

This commit is contained in:
TuxSH 2018-11-06 16:59:30 +01:00 committed by Michael Scire
parent 504c74bc57
commit d4241fd8ef
2 changed files with 6 additions and 0 deletions

View file

@ -18,6 +18,9 @@ class IClient : public IClientTag {
using ClientClass = Client;
using ServerClass = Server;
void *operator new(size_t sz) noexcept { for (;;); }
void operator delete(void *ptr) noexcept {}
~IClient()
{
parent->HandleClientDestroyed();

View file

@ -18,6 +18,9 @@ class IServer : public IServerTag {
using ClientClass = Client;
using ServerClass = Server;
void *operator new(size_t sz) noexcept { for (;;); }
void operator delete(void *ptr) noexcept {}
~IServer()
{
parent->HandleServerDestroyed();