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

#if #endif blocks not being recognized #24

Closed
drkameleon opened this issue Aug 28, 2015 · 1 comment
Closed

#if #endif blocks not being recognized #24

drkameleon opened this issue Aug 28, 2015 · 1 comment

Comments

@drkameleon
Copy link
Collaborator

No description provided.

@drkameleon
Copy link
Collaborator Author

As of the upcoming 1.4 : Initial support for #if (currently recognized only if the expression is within brackets), #elif, #else and #endif.

Example:

#if (x>2)
    #define SOMETHING
#else
    #define SOMETHING_ELSE
#endif

Becomes:

if x>2 {
// #define SOMETHING
} else {
// #define SOMETHING_ELSE
}

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