-
Notifications
You must be signed in to change notification settings - Fork 37
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
Falling back to blunt pre-processor phase #154
Comments
You mean you want to disable pre-processing of macros completely? |
Just out of curiosity could you give some examples of what would be needed? |
Yeah in old dstep versions it run actual C pre-processor first and only did conversion to D after (== no symbolic constants or type aliases from defines, everything expanded literally). Would be good to have such behaviour as a fallback option available in cases where smart translation fails for any reason. |
I looked into the code, and adding such a feature seems as simple as adding single |
Adds enabling/disabling macro translation.
Adds enabling/disabling macro translation.
Experimenting with new dstep features regarding pre-processor (i.e. alias / function translation) I have found it to be causing too much trouble for D1 compatibility case to try patching it. Is there a simple way to disable it (by flag or something) to just run pre-processor blindly same as in earlier dstep versions?
Mostly @ciechowoj question I presume.
The text was updated successfully, but these errors were encountered: