Add @nogc UDA, fix some small issues, xmake changes
-add @nogc to some functions where it was missing -fix compilation issue in mallocator -fix Meson build -some work on xmake build
This commit is contained in:
parent
5e123d96b3
commit
3a3a9e0341
6 changed files with 39 additions and 26 deletions
|
|
@ -2502,7 +2502,7 @@ export struct EntityManager
|
|||
*Params:
|
||||
*id = ID of entity to be copyied.
|
||||
*/
|
||||
export Entity* addEntityCopy(EntityID id)
|
||||
export Entity* addEntityCopy(EntityID id) nothrow @nogc
|
||||
{
|
||||
Entity* entity = getEntity(id);
|
||||
EntitiesBlock* block = getMetaData(entity);
|
||||
|
|
@ -2554,7 +2554,7 @@ export struct EntityManager
|
|||
Params:
|
||||
tmpl = pointer entity template allocated by EntityManager.
|
||||
*/
|
||||
export Entity* addEntity(EntityTemplate* tmpl)
|
||||
export Entity* addEntity(EntityTemplate* tmpl) nothrow @nogc
|
||||
{
|
||||
return addEntity(tmpl, null);
|
||||
}
|
||||
|
|
@ -2567,7 +2567,7 @@ export struct EntityManager
|
|||
tmpl = pointer entity template allocated by EntityManager.
|
||||
replacement = list of components references to used. Memory form list replace data from template inside new entity. Should be used only for data which vary between most entities (like 3D position etc.)
|
||||
*/
|
||||
export Entity* addEntity(EntityTemplate* tmpl, ComponentRef[] replacement)
|
||||
export Entity* addEntity(EntityTemplate* tmpl, ComponentRef[] replacement) nothrow @nogc
|
||||
{
|
||||
EntityInfo* info = tmpl.info;
|
||||
|
||||
|
|
@ -2664,7 +2664,7 @@ export struct EntityManager
|
|||
/************************************************************************************************************************
|
||||
Return block with free space for selected EntityInfo. Additional this function is multithread safe.
|
||||
*/
|
||||
private EntitiesBlock* findBlockWithFreeSpaceMT(EntityInfo* info)
|
||||
private EntitiesBlock* findBlockWithFreeSpaceMT(EntityInfo* info) nothrow @nogc
|
||||
{
|
||||
EntitiesBlock* block = info.last_block;
|
||||
|
||||
|
|
@ -2718,7 +2718,7 @@ export struct EntityManager
|
|||
Params:
|
||||
id = id of entity to remove
|
||||
*/
|
||||
export void removeEntity(EntityID id)
|
||||
export void removeEntity(EntityID id) nothrow @nogc
|
||||
{
|
||||
threads[threadID].entitesToRemove.add(id);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue