How best to add this feature: insert macro before each function definition #202
-
I'm currently trying to implement features necessary to generate a C header file which can be used to automatically add The second part is allowing the defined import macro to be placed before each function definition. I'm slightly struggling on implementing this in a sensible way currently without adding an extra parameter to the Would welcome thoughts on the best way to implement this. It seems to me there is a need for something like a language specific |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
If there are no other suggestions, I'm going to draft a PR introducing a language specific |
Beta Was this translation helpful? Give feedback.
-
See #226 |
Beta Was this translation helpful? Give feedback.
Apologies, I have been (and kind of still am) quite busy, so I cannot necessarily dedicate enough time to think about the best way to achieve these things. However, what you suggest does sound sensible, especially off the shoulders of
Definer
, or something along the lines of it (yourGenerationConfig
, with theDefiner
being a property / getter thereof?):HeaderLanguage
trait functions;header::Builder
could be tweaking