Forum > General

FPC Compiler Directives Macros... Tips?

<< < (3/3)

avra:

--- Quote from: trn76 on November 17, 2014, 11:13:14 am ---
--- Quote from: avra on November 17, 2014, 10:13:43 am ---You can make a little code generator to automate this, either native or as a pascal script application.

--- End quote ---
You where thinking offline? How would I do this, and with what...?
--- End quote ---
It's up to you. You know what are you most familiar with. If it were me I would try it with unit templates which would be parsed and replaced with real content suited to my needs. For templates I would probably try mustache templates from mORMot framework, and for application I would probably make pascal script enabled application that would read my macro files and put them into mustache templates. It would be worth it only if you really have tons of cases like this as you claim.

--- Quote ---I'm thinking it would be cool, but too much hassel - it should have been integrated in Lazarus or else it is easy to mess up.
--- End quote ---
Do you know of anyone else who has exact needs as you do? This is too specific so I would not count on it. If you need it you will need to implement it your self. Lazarus is open source, remember?

Navigation

[0] Message Index

[*] Previous page

Go to full version