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 Macro Declaration #15

Open
marcioAlmada opened this issue Feb 6, 2016 · 0 comments
Open

Conditional Macro Declaration #15

marcioAlmada opened this issue Feb 6, 2016 · 0 comments

Comments

@marcioAlmada
Copy link
Owner

The idea is to use a ·requires tag that must be evaluated before the macro "compilation". Macro will be skipped in case the expression is false:

macro ·requires(version_compare(PHP_VERSION, '7.1.0', '>')) {
    /* some match that depends on a PHP 7.1+ token */
} >> {
    /* the macro implementation */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant