I missed the beginning of this thread; is the objective to adjust fluid's generated code to be a bit prettier laid out?
If so, I'm not sure I'd be convinced that was useful, really; fluid's output is meant to be read by the compiler, not by humans, so it doesn't matter how "pretty" it is so long as it is valid syntax...
The little formatting (such as it is) that fluid does is, I think, meant to more or less follow the fltk coding style, which isn't much like the style I use...!
For what it is worth, if I do want to work on fluid-generated code later, I generally just pass it through astyle or indent (or sometimes even uncrustify depending on what mood I'm in!) to make it look more human-readable and pretty.
Hi, Akabane87
Very thankful for your sharing, I really like it.
I haven't got the new version from fltk.org's official published version which include the function you submitted.
Might I share this version of fluid update on github.com? or you may submit it to some open source version control web station, so I can fork?
I.B
On Saturday, March 21, 2015 at 11:23:37 AM UTC-5, Akabane87 wrote:
Selex ES Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL
A company registered in England & Wales. Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
I missed the beginning of this thread; is the objective to adjust fluid's generated code to be a bit prettier laid out?
If so, I'm not sure I'd be convinced that was useful, really; fluid's output is meant to be read by the compiler, not by humans, so it doesn't matter how "pretty" it is so long as it is valid syntax...
The little formatting (such as it is) that fluid does is, I think, meant to more or less follow the fltk coding style, which isn't much like the style I use...!
For what it is worth, if I do want to work on fluid-generated code later, I generally just pass it through astyle or indent (or sometimes even uncrustify depending on what mood I'm in!) to make it look more human-readable and pretty.