-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unneserry imports hurt wasm compatibility #44
Comments
Is there a version I can use to only do this for WASM? |
I'm using this command in a lazily reargended folder |
my hello world that works on both passed to a c compiler and dmd
|
Note that all the files are generated by dstep, so probably these "changes" would have to go in as manual steps (see the generating.md document) |
raylib-d/source/raylib/raymathext.d Line 5 in 07f7905
template FieldNameTuple(T)
{
static if (is(T == struct) || is(T == union))
alias FieldNameTuple = staticMap!(NameOf, T.tupleof[0 .. $ - isNested!T]);
else static if (is(T == class) || is(T == interface))
alias FieldNameTuple = staticMap!(NameOf, T.tupleof);
else
alias FieldNameTuple = AliasSeq!"";
}
template staticMap(alias fun, args...)
{
alias staticMap = AliasSeq!();
static foreach (arg; args)
staticMap = AliasSeq!(staticMap, fun!arg);
} I think this is the only place phoboes is used, and this is very easy to replace code |
for whatever reason wasm doesn't have c_long, so ive been hunting down those imports
reasing line 87; narrow to
import core.stdc.math:sinf,cosf,sqrtf,powf;
raymathext line 4
import core.stdc.math:cos,sin,atan2,sqrt;
raygui line 17
theres probably others and my other modification may have moved the lines around
The text was updated successfully, but these errors were encountered: