[Prev][Next][Index][Thread]
Re: Issues with GD
> From: brucehoult@pobox.com (Bruce Hoult)
>
> You *could* probably do something like ...
>
> c-expr(int: "sizeof(Point)")
>
> ... instead of the "4". This *might* limit d2c's ability to do smart
> things. (hmm -- can it inline things using c-expr?)
I don't know, but as I'm using this for the Toolbox lib now it would be good
to know. :-)
I assume constants could be assigned in the same way:
define constant $suspendResumeEvent = c-expr( int: "suspendResumeEvent" );
When calling out, c headers that aren't automatically included need to be
included using c-include before its exports are used:
c-include( "Quickdraw.h" );
- Rob.
Follow-Ups:
References: