Skip to content
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

Conditional compilation version() function #530

Open
joshtynjala opened this issue May 18, 2023 · 0 comments
Open

Conditional compilation version() function #530

joshtynjala opened this issue May 18, 2023 · 0 comments

Comments

@joshtynjala
Copy link

https://haxe.org/manual/lf-condition-compilation.html#haxelibs

By default, each used haxelib version is automatically added as flag, e.g. when you add -L actuate, the compiler adds -D actuate=1.8.7. To test if a library exists in current context, use #if actuate. To check a specific haxelib version, use the operators, for example #if (actuate <= "1.8.7").

I've heard that #if (actuate <= version("1.8.7")) is better, but I can't seem to find version() documented anywhere in the manual. This seems like the place where I should be able to find it, though.

@joshtynjala joshtynjala changed the title Conditional compilation version() Conditional compilation version() function May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant