-
Notifications
You must be signed in to change notification settings - Fork 28
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
Ignore new common.j natives if game version too low #645
Comments
Hmm, shouldn't this already work as we remove all unused functions? |
I couldn't compile my map as the Blz* natives were missing from |
@karlek If you want to compile pre 1.29 , you need the stdlib branch pre 1.29 which doesn't contains the extension functions etc. I guess we need the setup tool now to offer a pre-1.29 setup |
Good to know! Yeah, I don't think the mapping community in general has the git skill to change branches freely. |
yes. |
@PhoenixZeng we don't use |
@Frotty in compiled.j.txt
|
Yes, but that isn't related to this ticket, which is taking about common.j/blizzard.j |
emm. |
Yes, if we want to support pre 1.29 development fully, we probably need some fallback functionality. |
I doubt it's common to hit 8192 array limit, considering that in it's own is a pretty high number. |
Code that doesn't behave well (leaks class instances) will easily hit the array limit. |
@DaffaMage |
I see then, my apologies. |
Alright so to summarize we want to offer a build flag for pre 1.29 to:
|
It's not necessary.Because the compiler does not pour unused standard library functions. maybe can make a annotation |
If we compile with an old common.j the current version of the standard library will probably give some errors since it uses some new natives. Why can't we just compile with the new common.j and use pjass to check the final war3map.j against the target version common.j? And for array size we can just add an option. |
Yes, I think the project's common.j Blizzard.j aren't passed to Pjass. Other than that it should be working. |
Since we want to ship the latest jass API with wurst, but keep backwards compat,
the new natives should simply be ignored so that everyone can use the same standard library.
The text was updated successfully, but these errors were encountered: