-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:
parent
015783bf5c
commit
a8c74d5045
5 changed files with 158 additions and 23 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue