This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Integration with C


Hmm just thought of something else. What you suggest is a function, not a class method. So it only calls the class with a static method, it doesn't access a method of a class instance. Is it possible to add a method like this to the class's api, or do I have to provide the class instance to a similar function if I don't want to work with static methods for this?

Ie

static inline void setfoo (Javaclass *object, fptr z)
{
  object->setfoo ((RawData)z);
}

gbevin at uwyn dot com wrote:
I'd just just use a nested include.  Your users include your
hand-coded header file which in turn includes the auto-generated file.


Even better !

Thanks again,

Geert




--
Geert Bevin                       Uwyn
"Use what you need"               Lambermontlaan 148
http://www.uwyn.com               1030 Brussels
gbevin[remove] at uwyn dot com    Tel & Fax +32 2 245 41 06

PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]