-
Notifications
You must be signed in to change notification settings - Fork 31
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
Cannot define a macro that defines macros #36
Comments
In principle it is possible to define user versions of meta-macros, though this can be tricky and I'm not sure that there is any way of getting GPP to evaluate something as a macro name. I've tried several variations on your example and can't come up with anything that works. |
This is very tricky, and my example uses a highly customized syntax, but I hope the idea should be clear. I use twice
|
Thanks, @fadado . I will give that a try! |
Really weird to me that there isn't a dead simple way to do this. |
How does one define a macro that defines other macros?
What I think should work...
...does not.
Taking out the backslash...
...does not help.
The text was updated successfully, but these errors were encountered: