Skip to content

Conditional compilation version() function #530

@joshtynjala

Description

@joshtynjala

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions