CCodeGenerator (newbie) questions
Raab, Andreas
Andreas.Raab at disney.com
Fri Jan 14 23:59:13 UTC 2000
Douglas,
> 1. Does anyone know if it is possible to specify the variable type
> for non-local variable declarations generated from instance
> variables? For example, I would like to be able to say something like:
>
> self instVar: #foo declareC: 'char *foo'.
Have a look at the implementors of #declareCVarsIn: which is used by several
translated classes to declare instVars in a specific way.
> 2. Is there a way to insert a c-comment?
self cCode:'/* here goes my comment */'
is the easiest (and ugliest) way to do it - but it works ;-)
A.
More information about the Squeak-dev
mailing list
|