David Megginson writes: > >I've added some basic property-debugging support to FlightGear and >SimGear. In FlightGear, the --trace-read option causes all read >access for a property to be traced, and the --trace-write option >causes all write access for a property to be traced, both through >SG_LOG messages.
Good idea but how about having the compile time option to turn it off ie #ifdef DO_TRACE // or any good memonic #define DO_TRACE_READ(type) if(getAttribute(TRACE_READ)) trace_read(type) #define DO_TRACE_WRITE(type) if (getAttribute(TRACE_WRITE)) trace_write(type) #else #define DO_TRACE_READ(type) #define DO_TRACE_WRITE(type) #endif Cheers Norman _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel