Web assembly #6
2 changed files with 25 additions and 11 deletions
24
dub.json
24
dub.json
|
|
@ -56,9 +56,18 @@
|
||||||
"name" : "dynlib-betterC",
|
"name" : "dynlib-betterC",
|
||||||
"targetType" : "dynamicLibrary",
|
"targetType" : "dynamicLibrary",
|
||||||
"dflags": [
|
"dflags": [
|
||||||
"-betterC",
|
"-betterC"
|
||||||
"-defaultlib=",
|
],
|
||||||
"--fvisibility=hidden"
|
"dflags-ldc": [
|
||||||
|
"--fvisibility=hidden",
|
||||||
|
"-link-defaultlib-shared"
|
||||||
|
],
|
||||||
|
"dflags-gdc": [
|
||||||
|
"-fno-druntime",
|
||||||
|
"-fvisibility=hidden"
|
||||||
|
],
|
||||||
|
"lflags-gdc": [
|
||||||
|
"-lpthread"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -69,8 +78,13 @@
|
||||||
"source\/win_dll.d"
|
"source\/win_dll.d"
|
||||||
],
|
],
|
||||||
"dflags": [
|
"dflags": [
|
||||||
"-betterC",
|
"-betterC"
|
||||||
"-defaultlib="
|
],
|
||||||
|
"dflags-gdc": [
|
||||||
|
"-fno-druntime"
|
||||||
|
],
|
||||||
|
"lflags-gdc": [
|
||||||
|
"-lpthread"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -233,7 +233,7 @@ export struct EntityManager
|
||||||
/************************************************************************************************************************
|
/************************************************************************************************************************
|
||||||
*Default constructor.
|
*Default constructor.
|
||||||
*/
|
*/
|
||||||
this(uint threads_count) nothrow @nogc
|
export this(uint threads_count) nothrow @nogc
|
||||||
{
|
{
|
||||||
if (threads_count == 0)
|
if (threads_count == 0)
|
||||||
threads_count = 1;
|
threads_count = 1;
|
||||||
|
|
@ -252,7 +252,7 @@ export struct EntityManager
|
||||||
//event_manager.manager = this;
|
//event_manager.manager = this;
|
||||||
}
|
}
|
||||||
|
|
||||||
~this() nothrow @nogc
|
export ~this() nothrow @nogc
|
||||||
{
|
{
|
||||||
id_manager.deinitialize();
|
id_manager.deinitialize();
|
||||||
event_manager.destroy();
|
event_manager.destroy();
|
||||||
|
|
@ -2439,7 +2439,7 @@ export struct EntityManager
|
||||||
*/
|
*/
|
||||||
struct ComponentInfo
|
struct ComponentInfo
|
||||||
{
|
{
|
||||||
nothrow ~this(){}
|
export ~this() nothrow @nogc {}
|
||||||
///Component size
|
///Component size
|
||||||
ushort size;
|
ushort size;
|
||||||
///Component data alignment
|
///Component data alignment
|
||||||
|
|
@ -2583,7 +2583,7 @@ export struct EntityManager
|
||||||
return new_info;
|
return new_info;
|
||||||
}
|
}
|
||||||
|
|
||||||
~this() @nogc nothrow
|
export ~this() @nogc nothrow
|
||||||
{
|
{
|
||||||
if(components)Mallocator.dispose(components);
|
if(components)Mallocator.dispose(components);
|
||||||
if(deltas)Mallocator.dispose(deltas);
|
if(deltas)Mallocator.dispose(deltas);
|
||||||
|
|
@ -2738,7 +2738,7 @@ export struct EntityManager
|
||||||
|
|
||||||
struct SystemCaller
|
struct SystemCaller
|
||||||
{
|
{
|
||||||
~this() nothrow @nogc
|
export ~this() nothrow @nogc
|
||||||
{
|
{
|
||||||
if (dependencies)
|
if (dependencies)
|
||||||
{
|
{
|
||||||
|
|
@ -2830,7 +2830,7 @@ export struct EntityManager
|
||||||
uint allocated = 0;
|
uint allocated = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
~this() nothrow @nogc
|
export ~this() nothrow @nogc
|
||||||
{
|
{
|
||||||
foreach(block;blocks)
|
foreach(block;blocks)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue