Skip to content

Preprocessors broken #7

@TBar09

Description

@TBar09

So when using preprocessors (#if #end), there is a "bug" where setting a custom preprocessor to false or 0

#if THIS_IS_FALSE //doesn't matter if this is set to `false` or `0`, it will still run
trace("hello");
#end

This will trace the message

I kinda figured that it would only check if the preprocessor exists and not check it's property (especially since doing things like #if(hxvlc >= "1.9.2") or version checking doesn't work altogether) So I kinda just thought it would be nice if the parser would check it's property and could have the ability to check version like above.

Image
Image

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