[DGD] Re: Conditional inherits?
Felix A. Croes
felix at dworkin.nl
Tue Mar 24 20:03:34 CET 1998
Kevin Carpenter <kevinc at kplace.monrou.com> wrote:
> Felix A. Croes write:
> >
> > It's the only way to do what you want.
> >
> > Note that driver->path_include() is not called for files #included when
> > the driver object itself is compiled (for obvious reasons) and when the
> > auto object is compiled, so the standard include file must still be a
> > <valid> file. However, for other objects driver->path_include() can
> > substitute whatever you want.
> >
>
> Good note, I almost didn't do that. Is there any way for the driver to
> programically determine what the name of the standard include file is?
Nope. If you have different include files, the best way to handle this
would be to put it as a #define in the standard include file itself:
#define STD_INCLUDE_FILE "/include/std.h"
That way, the driver object can figure it out.
Dworkin
More information about the DGD
mailing list