-make tests working on web

-WebAssembly now is compiled with emscripten use (stdc functions bindings only)
-added python script to build WASM version
This commit is contained in:
Mergul 2019-11-05 09:21:02 +01:00
parent 015783bf5c
commit a8c74d5045
5 changed files with 158 additions and 23 deletions

View file

@ -198,7 +198,7 @@ public:
}
export ref T opIndex(size_t elemNum) {
debug assert(elemNum < used, "Range violation [index]");
//debug assert(elemNum < used, "Range violation [index]");
return array.ptr[elemNum];
}
@ -221,12 +221,12 @@ public:
}
export void opOpAssign(string op)(T obj) {
static assert(op == "~");
//static assert(op == "~");
add(obj);
}
export void opOpAssign(string op, X)(X[] obj) {
static assert(op == "~");
//static assert(op == "~");
add(obj);
}