-remove '-defaultlib' from dub.json
-start working with WebAssembly -modified .gitignore -added meson build file (WIP)
This commit is contained in:
parent
7fa41f7671
commit
015783bf5c
9 changed files with 145 additions and 17 deletions
|
|
@ -10,11 +10,24 @@ import ecs.system;
|
|||
import ecs.attributes;
|
||||
import ecs.core;
|
||||
|
||||
import core.time;
|
||||
import std.stdio;
|
||||
|
||||
version(Windows)
|
||||
|
||||
version(WebAssembly)
|
||||
{
|
||||
extern(C) void printf(const char *format, ...) @nogc nothrow @system;
|
||||
struct Time
|
||||
{
|
||||
static long getUSecTime()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
extern(C) void _start() {}
|
||||
}
|
||||
else version(Windows)
|
||||
{
|
||||
import core.stdc.stdio : printf;
|
||||
import core.sys.windows.windows;
|
||||
struct Time
|
||||
{
|
||||
|
|
@ -29,6 +42,7 @@ version(Windows)
|
|||
}
|
||||
else version(Posix)
|
||||
{
|
||||
import core.stdc.stdio : printf;
|
||||
import core.sys.posix.time;
|
||||
struct Time
|
||||
{
|
||||
|
|
@ -287,7 +301,6 @@ struct TestSystem
|
|||
{
|
||||
assert(cast(size_t)&test % TestComp.alignof == 0);
|
||||
assert(cast(size_t)&test2 % TestComp2.alignof == 0);
|
||||
import std.stdio;
|
||||
|
||||
test.a += 1000;
|
||||
test.b += 2000;
|
||||
|
|
@ -440,7 +453,6 @@ struct TestSystem2
|
|||
|
||||
void onEnable()
|
||||
{
|
||||
import std.stdio;
|
||||
|
||||
//writeln("TestSystem2 enabled");
|
||||
printf("TestSystem2 enabled\n");
|
||||
|
|
@ -448,7 +460,6 @@ struct TestSystem2
|
|||
|
||||
void onDisable()
|
||||
{
|
||||
import std.stdio;
|
||||
|
||||
//writeln("TestSystem2 disabled");
|
||||
printf("TestSystem2 disabled\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue