-betterC working on GDC
-added some attributes like export and nothrow
This commit is contained in:
parent
d8b01ee097
commit
d0c3926316
2 changed files with 25 additions and 11 deletions
|
|
@ -233,7 +233,7 @@ export struct EntityManager
|
|||
/************************************************************************************************************************
|
||||
*Default constructor.
|
||||
*/
|
||||
this(uint threads_count) nothrow @nogc
|
||||
export this(uint threads_count) nothrow @nogc
|
||||
{
|
||||
if (threads_count == 0)
|
||||
threads_count = 1;
|
||||
|
|
@ -252,7 +252,7 @@ export struct EntityManager
|
|||
//event_manager.manager = this;
|
||||
}
|
||||
|
||||
~this() nothrow @nogc
|
||||
export ~this() nothrow @nogc
|
||||
{
|
||||
id_manager.deinitialize();
|
||||
event_manager.destroy();
|
||||
|
|
@ -2439,7 +2439,7 @@ export struct EntityManager
|
|||
*/
|
||||
struct ComponentInfo
|
||||
{
|
||||
nothrow ~this(){}
|
||||
export ~this() nothrow @nogc {}
|
||||
///Component size
|
||||
ushort size;
|
||||
///Component data alignment
|
||||
|
|
@ -2583,7 +2583,7 @@ export struct EntityManager
|
|||
return new_info;
|
||||
}
|
||||
|
||||
~this() @nogc nothrow
|
||||
export ~this() @nogc nothrow
|
||||
{
|
||||
if(components)Mallocator.dispose(components);
|
||||
if(deltas)Mallocator.dispose(deltas);
|
||||
|
|
@ -2738,7 +2738,7 @@ export struct EntityManager
|
|||
|
||||
struct SystemCaller
|
||||
{
|
||||
~this() nothrow @nogc
|
||||
export ~this() nothrow @nogc
|
||||
{
|
||||
if (dependencies)
|
||||
{
|
||||
|
|
@ -2830,7 +2830,7 @@ export struct EntityManager
|
|||
uint allocated = 0;
|
||||
}
|
||||
|
||||
~this() nothrow @nogc
|
||||
export ~this() nothrow @nogc
|
||||
{
|
||||
foreach(block;blocks)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue