Created
May 24, 2017 08:37
-
-
Save spoenemann/106c8441c83be3a4129c165937292a60 to your computer and use it in GitHub Desktop.
Traced method for translating a class declaration into a C struct
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Traced protected def generateHeader(ClassDeclaration it) ''' | |
/* | |
* Declaration of «name» class | |
*/ | |
struct _«_name» | |
{ | |
«FOR p : members.filter(Property)» | |
/* Property «name».«p.name» */ | |
«generateDeclaration(p)» | |
«ENDFOR» | |
}; | |
''' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment