Fix unregisterSystem function

and add function to get m_system_pointer from System
This commit is contained in:
Mergul 2023-03-09 11:04:12 +01:00
parent 9bf6f84d45
commit 0702b007d1
3 changed files with 78 additions and 16 deletions

View file

@ -341,7 +341,7 @@ nothrow:
int result;
foreach (ref Key k; this)
{
result = (cast(int delegate(ref Key k) nothrow)dg)(k);
result = (cast(int delegate(ref Key k) nothrow @nogc)dg)(k);
if (result)
break;
}
@ -353,7 +353,7 @@ nothrow:
int result;
foreach (ref Value v; this)
{
result = (cast(int delegate(ref Value v) nothrow)dg)(v);
result = (cast(int delegate(ref Value v) nothrow @nogc)dg)(v);
if (result)
break;
}
@ -365,7 +365,7 @@ nothrow:
int result;
foreach (ref Key k, ref Value v; this)
{
result = (cast(int delegate(ref Key k, ref Value v) nothrow)dg)(k, v);
result = (cast(int delegate(ref Key k, ref Value v) nothrow @nogc)dg)(k, v);
if (result)
break;
}