This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: When C++ obeject is passed to C function
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: "VallabhaN" <VallabhaN at bristol dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 06 Aug 2002 11:53:48 -0500
- Subject: Re: When C++ obeject is passed to C function
Hi Vallabha,
Your working sample is brittle, in the sense that it is very dependent upon
the platform (compiler + OS) implementation details.
My suggestion is a means to allow you to avoid platform dependencies and
intimate knowledge thereof.
Your alternative would be to become familiar with the underlying
implementation on 64-bit GCC 3.1, and have #if/#endif blocks in your code
to handle the differences (or use some other proxy pattern / abstraction
layer to avoid code "pollution").
I'm not familiar with the underlying implementation schema used on any
64-bit GCC 3.1.
--Eljay