Re: [xslt] xsltconfig.h.in or me?



Hi all,

I'd forgotten what the WITH_XSLT_DEBUGGER MACRO 
was for. It was provided for the libxslt 
application to test whether debugger support was 
compiled into libxslt or not. At this time is 
realy only useful to xsldbg related products.

So far I check this only under *nix in configure 
scripts, though Igor made me realize I was 
checking for the wrong MACRO name :-( And in the 
past this method has been not easy to support 
under other platforms.

I'm thinking of changing the way I handle this.  
A possible solution would be continue to have 
WITH_XSLT_DEBUGGER, or some other name, in 
xsltconfig.h.in and the application do a check on 
the value of that name in their header file eg

------------- cut ------------
#include <libxslt/xsltconfig.h>

#if WITH_XSLT_DEBUGGER == 0
  #error "debugger support not compiled in 
libxslt"
#endif

------------- end -----------

I'm not sure of the details of this but I 
understand #error is supported by ANSII C.

Comments?

bye,

Keith
Isdale




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