A little rant about CodeGenerator

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

A little rant about CodeGenerator

Igor Stasenko
 
Why it forcing me do such bogus things:

declareHeaderFilesIn: aCCodeGenerator
        aCCodeGenerator addHeaderFile: '<stdio.h>
#if defined(bla bla)
        #include <foo>
        #define bar
        #define baz
#else
#endif
'.
        ^ super declareHeaderFilesIn: aCCodeGenerator

What i mean, why we don't have a simple message, like

#addExtraDefinitionsIn: aCCodeGenerator

so, plugin or interpreter could add whatever they want?


--
Best regards,
Igor Stasenko AKA sig.
Reply | Threaded
Open this post in threaded view
|

Re: A little rant about CodeGenerator

Bert Freudenberg
 

On 25.09.2010, at 05:43, Igor Stasenko wrote:

>
> Why it forcing me do such bogus things:
>
> declareHeaderFilesIn: aCCodeGenerator
> aCCodeGenerator addHeaderFile: '<stdio.h>
> #if defined(bla bla)
> #include <foo>
> #define bar
> #define baz
> #else
> #endif
> '.
> ^ super declareHeaderFilesIn: aCCodeGenerator
>
> What i mean, why we don't have a simple message, like
>
> #addExtraDefinitionsIn: aCCodeGenerator
>
> so, plugin or interpreter could add whatever they want?

Because nobody bothered to add that yet? Patches certainly welcome :)

- Bert -