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:
parent
504c74bc57
commit
d4241fd8ef
2 changed files with 6 additions and 0 deletions
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue