Subject | Re: Rock>Java>Threads>Hardplace |
---|---|
Author | Mark O'Donohue |
Post date | 2000-11-29T10:44:38Z |
> something like:The way to do it is:
>
> #COMPILE "C" {
> <old code>
> } // End of C code
>
#extern "C" {
}
But there is/was also an option to generate prototypes somewhere in
gcc or some attached bit, As with yourself, I haven't used it in the
last 5 years, but remember using such a tool somewhere.
I think the macros will be fun though, particularly those that are
pointers to functions, - not impossible - but interesting and it may
be that something like this will need to be used there.
>I'd agree.
> However, even doing just this allowed us to intermix C and C++ code, and
> that was well worth the hassle.
>
Cheers
Mark