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

#define preprocessor statements not being recognized #25

Closed
drkameleon opened this issue Aug 28, 2015 · 3 comments
Closed

#define preprocessor statements not being recognized #25

drkameleon opened this issue Aug 28, 2015 · 3 comments

Comments

@drkameleon
Copy link
Collaborator

define statements - since they're rather challenging to be converted should be copied (and commented out) to the output.

Example:

#define SOME_MACRO(X) DO_SOMETHING_WITH(X)

Output:

// #define SOME_MACRO(X) DO_SOMETHING_WITH(X)
@drkameleon
Copy link
Collaborator Author

Fixed as of the upcoming 1.4.

@bre7
Copy link

bre7 commented Aug 31, 2015

Or convert it to a global function ?

Output:

func SOME_MACRO(X) {
    DO_SOMETHING_WITH(X)
}

@drkameleon
Copy link
Collaborator Author

Or convert it to a global function ?

This is something I've thought of too. Let me see...

This issue was closed.
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

2 participants