cpp branch: preprocessor stuff



The ORBit2 cpp branch now output code for test/empty.idl, using
`orbit-idl-2 -lc++'.

However, it can't handle Bonobo_Unknown.idl unless I remove the
preprocessor code, listed below. If this is stuff that should be
processed before the idl is parsed, then I don't understand why the cpp
idl-compiler handles them differently.



#ifndef __BONOBO_UNKNOWN_IDL__
#define __BONOBO_UNKNOWN_IDL__

#ifndef __Bonobo_Unknown_COMPILATION
#ifdef  __ORBIT_IDL__
%{
#pragma include_defs bonobo-activation/Bonobo_Unknown.h
%}
#pragma inhibit push
#endif
#endif

...

#ifndef __Bonobo_Unknown_COMPILATION
#ifdef __ORBIT_IDL__
#pragma inhibit pop
#endif
#endif

#endif /* ! __BONOBO_UNKNOWN_IDL__ */



-- 
Murray Cumming
murrayc@usa.net
www.murrayc.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]