TraceLicense.h 536 B

1234567891011121314151617181920
  1. #if DEBUG
  2. # include "Trace.h"
  3. /* state */
  4. #define DEBUG_TRACE_LICENSE_CLICKED \
  5. Button* btn = buttonThatWasClicked ; \
  6. if (btn == cancelButton) Trace::TraceEvent("cancelButton clicked") ; \
  7. else if (btn == agreeButton) Trace::TraceEvent("agreeButton clicked") ; \
  8. else if (btn == alwaysButton) Trace::TraceEvent("alwaysButton clicked") ;
  9. #else // DEBUG
  10. // state
  11. #define DEBUG_TRACE_LICENSE_CLICKED ;
  12. #endif // DEBUG