Browse Source

added SITL_debug() macro

this can be used to print a message into the logs in the SITL
simulator. This will be used for critical conditions.
master
Andrew Tridgell 13 years ago
parent
commit
601a991a46
  1. 6
      libraries/AP_Common/AP_Common.h

6
libraries/AP_Common/AP_Common.h

@ -227,5 +227,11 @@ struct Location { @@ -227,5 +227,11 @@ struct Location {
//@}
#ifdef DESKTOP_BUILD
// used to report serious errors in autotest
# define SITL_debug(fmt, args...) fprintf(stdout, "%s:%u " fmt, __FUNCTION__, __LINE__, ##args)
#else
# define SITL_debug(fmt, args...)
#endif
#endif // _AP_COMMON_H

Loading…
Cancel
Save