Re: unbuildable code generated for inheritance?
- From: Michael Meeks <michael ximian com>
- To: orbit-list gnome org
- Subject: Re: unbuildable code generated for inheritance?
- Date: Wed, 30 May 2001 08:12:36 -0400 (EDT)
Hi Bill,
On Wed, 30 May 2001, Bill Haneman wrote:
> I am attempting to use #pragma inhibit in order to derive an interface
> from one that is defined in a separate idl file:
Sounds good, an example of how to do this is in the Bonobo IDL,
essentialy you need to use:
#if !defined(__CHILD_COMPILATION) && defined(__ORBIT_IDL__)
%{
#pragma include_defs parent.h
%}
#pragma inhibit push
#endif
IDL ...
#if !defined(__CHILD_COMPILATION) && defined(__ORBIT_IDL__)
#pragma inhibit pop
#endif
It is best style to put this inside the Parent.idl in fact, since
then the includer doesn't need to know the gory details of getting around
the problem.
You appreciate that this ugly hack is only to get around the
unfortunate neccessity of having generated code live in shared libraries ?
You worried me enough to add a regression test to ORBit2
orbit-small branch, test/inhibit.
HTH,
Michael.
--
mmeeks gnu org <><, Pseudo Engineer, itinerant idiot
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]