This C library provides error-reporting and debug output facilities. More...
#define | PLAYER_ERROR(msg) ErrorPrint(PLAYER_ERR_ERR, 0, __FILE__, __LINE__, "error : " msg "\n") |
#define | PLAYER_ERROR1(msg, a) ErrorPrint(PLAYER_ERR_ERR, 0, __FILE__, __LINE__, "error : " msg "\n", a) |
#define | PLAYER_ERROR2(msg, a, b) ErrorPrint(PLAYER_ERR_ERR, 0, __FILE__, __LINE__, "error : " msg "\n", a, b) |
#define | PLAYER_ERROR3(msg, a, b, c) ErrorPrint(PLAYER_ERR_ERR, 0, __FILE__, __LINE__, "error : " msg "\n", a, b, c) |
#define | PLAYER_ERROR4(msg, a, b, c, d) ErrorPrint(PLAYER_ERR_ERR, 0, __FILE__, __LINE__, "error : " msg "\n", a, b, c, d) |
#define | PLAYER_ERROR5(msg, a, b, c, d, e) ErrorPrint(PLAYER_ERR_ERR, 0, __FILE__, __LINE__, "error : " msg "\n", a, b, c, d, e) |
#define | PLAYER_WARN(msg) ErrorPrint(PLAYER_ERR_WARN, 0, __FILE__, __LINE__, "warning : " msg "\n") |
Warning message macros. | |
#define | PLAYER_WARN1(msg, a) ErrorPrint(PLAYER_ERR_WARN, 0, __FILE__, __LINE__, "warning : " msg "\n", a) |
#define | PLAYER_WARN2(msg, a, b) ErrorPrint(PLAYER_ERR_WARN, 0, __FILE__, __LINE__, "warning : " msg "\n", a, b) |
#define | PLAYER_WARN3(msg, a, b, c) ErrorPrint(PLAYER_ERR_WARN, 0, __FILE__, __LINE__, "warning : " msg "\n", a, b, c) |
#define | PLAYER_WARN4(msg, a, b, c, d) ErrorPrint(PLAYER_ERR_WARN, 0, __FILE__, __LINE__, "warning : " msg "\n", a, b, c, d) |
#define | PLAYER_WARN5(msg, a, b, c, d, e) ErrorPrint(PLAYER_ERR_WARN, 0, __FILE__, __LINE__, "warning : " msg "\n", a, b, c, d, e) |
#define | PLAYER_WARN6(msg, a, b, c, d, e, f) ErrorPrint(PLAYER_ERR_WARN, 0, __FILE__, __LINE__, "warning : " msg "\n", a, b, c, d, e, f) |
#define | PLAYER_WARN7(msg, a, b, c, d, e, f, g) ErrorPrint(PLAYER_ERR_WARN, 0, __FILE__, __LINE__, "warning : " msg "\n", a, b, c, d, e, f, g) |
#define | PLAYER_MSG0(level, msg) ErrorPrint(PLAYER_ERR_MSG, level, __FILE__, __LINE__, "" msg "\n") |
General messages. | |
#define | PLAYER_MSG1(level, msg, a) ErrorPrint(PLAYER_ERR_MSG, level, __FILE__, __LINE__, "" msg "\n", a) |
#define | PLAYER_MSG2(level, msg, a, b) ErrorPrint(PLAYER_ERR_MSG, level, __FILE__, __LINE__, "" msg "\n", a, b) |
#define | PLAYER_MSG3(level, msg, a, b, c) ErrorPrint(PLAYER_ERR_MSG, level, __FILE__, __LINE__, "" msg "\n", a, b, c) |
#define | PLAYER_MSG4(level, msg, a, b, c, d) ErrorPrint(PLAYER_ERR_MSG, level, __FILE__, __LINE__, "" msg "\n", a, b, c, d) |
#define | PLAYER_MSG5(level, msg, a, b, c, d, e) ErrorPrint(PLAYER_ERR_MSG, level, __FILE__, __LINE__, "" msg "\n", a, b, c, d, e) |
#define | PLAYER_MSG6(level, msg, a, b, c, d, e, f) ErrorPrint(PLAYER_ERR_MSG, level, __FILE__, __LINE__, "" msg "\n", a, b, c, d, e, f) |
#define | PLAYER_MSG7(level, msg, a, b, c, d, e, f, g) ErrorPrint(PLAYER_ERR_MSG, level, __FILE__, __LINE__, "" msg "\n", a, b, c, d, e, f, g) |
This C library provides error-reporting and debug output facilities.
Instead of calling directly into the stdio library (printf, puts, etc.), use the macros defined in error.h, so that message verbosity can be centrally controlled and so that all messsages get logged to .player.
#define PLAYER_ERROR | ( | msg | ) | ErrorPrint(PLAYER_ERR_ERR, 0, __FILE__, __LINE__, "error : " msg "\n") |
Error message macros
Referenced by CameraUvc::MainSetup(), ImageBase::MainSetup(), LaserTransform::Setup(), P2OS::MainSetup(), RFLEX::Main(), Claser::openSerial(), Claser::scanRead(), Claser::runLaser(), SegwayRMP::MainSetup(), SegwayRMP::CanBusSetup(), SegwayRMP::USBSetup(), SegwayRMP::Main(), SegwayRMP400::SegwayRMP400(), SphereDriver::SphereDriver(), and SphereDriver::MainSetup().
#define PLAYER_ERROR1 | ( | msg, | |
a | |||
) | ErrorPrint(PLAYER_ERR_ERR, 0, __FILE__, __LINE__, "error : " msg "\n", a) |
Error message macros
Referenced by AdaptiveMCL::MainSetup(), GarciaDriver::ProcessMessage(), P2OS::MainSetup(), SegwayRMP::CanBusSetup(), SegwayRMP400::MainSetup(), and SphereDriver::ProcessMessage().
#define PLAYER_ERROR2 | ( | msg, | |
a, | |||
b | |||
) | ErrorPrint(PLAYER_ERR_ERR, 0, __FILE__, __LINE__, "error : " msg "\n", a, b) |
Error message macros
#define PLAYER_ERROR3 | ( | msg, | |
a, | |||
b, | |||
c | |||
) | ErrorPrint(PLAYER_ERR_ERR, 0, __FILE__, __LINE__, "error : " msg "\n", a, b, c) |
Error message macros
#define PLAYER_ERROR4 | ( | msg, | |
a, | |||
b, | |||
c, | |||
d | |||
) | ErrorPrint(PLAYER_ERR_ERR, 0, __FILE__, __LINE__, "error : " msg "\n", a, b, c, d) |
Error message macros
#define PLAYER_ERROR5 | ( | msg, | |
a, | |||
b, | |||
c, | |||
d, | |||
e | |||
) | ErrorPrint(PLAYER_ERR_ERR, 0, __FILE__, __LINE__, "error : " msg "\n", a, b, c, d, e) |
Error message macros
#define PLAYER_MSG0 | ( | level, | |
msg | |||
) | ErrorPrint(PLAYER_ERR_MSG, level, __FILE__, __LINE__, "" msg "\n") |
General messages.
Use level to indicate the message importance
Referenced by AdaptiveMCL::MainSetup(), AdaptiveMCL::MainQuit(), MapTransform::ProcessMessage(), SegwayRMP::CanBusSetup(), SegwayRMP::USBSetup(), SegwayRMP::MainQuit(), SegwayRMP::Main(), SegwayRMP400::SegwayRMP400(), SegwayRMP400::MainSetup(), SegwayRMP400::MainQuit(), snd::Setup(), snd::Shutdown(), snd::Main(), snd::ProcessMessage(), wbr914::MainSetup(), and wbr914::Main().
#define PLAYER_MSG1 | ( | level, | |
msg, | |||
a | |||
) | ErrorPrint(PLAYER_ERR_MSG, level, __FILE__, __LINE__, "" msg "\n", a) |
Error message macros
Referenced by P2OS::MainSetup(), and RFLEX::Main().
#define PLAYER_MSG2 | ( | level, | |
msg, | |||
a, | |||
b | |||
) | ErrorPrint(PLAYER_ERR_MSG, level, __FILE__, __LINE__, "" msg "\n", a, b) |
Error message macros
Referenced by SegwayRMP::Main().
#define PLAYER_MSG3 | ( | level, | |
msg, | |||
a, | |||
b, | |||
c | |||
) | ErrorPrint(PLAYER_ERR_MSG, level, __FILE__, __LINE__, "" msg "\n", a, b, c) |
Error message macros
Referenced by snd::ProcessMessage().
#define PLAYER_MSG4 | ( | level, | |
msg, | |||
a, | |||
b, | |||
c, | |||
d | |||
) | ErrorPrint(PLAYER_ERR_MSG, level, __FILE__, __LINE__, "" msg "\n", a, b, c, d) |
Error message macros
Referenced by MapTransform::ProcessMessage().
#define PLAYER_MSG5 | ( | level, | |
msg, | |||
a, | |||
b, | |||
c, | |||
d, | |||
e | |||
) | ErrorPrint(PLAYER_ERR_MSG, level, __FILE__, __LINE__, "" msg "\n", a, b, c, d, e) |
Error message macros
#define PLAYER_MSG6 | ( | level, | |
msg, | |||
a, | |||
b, | |||
c, | |||
d, | |||
e, | |||
f | |||
) | ErrorPrint(PLAYER_ERR_MSG, level, __FILE__, __LINE__, "" msg "\n", a, b, c, d, e, f) |
Error message macros
#define PLAYER_MSG7 | ( | level, | |
msg, | |||
a, | |||
b, | |||
c, | |||
d, | |||
e, | |||
f, | |||
g | |||
) | ErrorPrint(PLAYER_ERR_MSG, level, __FILE__, __LINE__, "" msg "\n", a, b, c, d, e, f, g) |
Error message macros
#define PLAYER_WARN1 | ( | msg, | |
a | |||
) | ErrorPrint(PLAYER_ERR_WARN, 0, __FILE__, __LINE__, "warning : " msg "\n", a) |
Error message macros
Referenced by Alsa::Main(), and snd::ProcessMessage().
#define PLAYER_WARN2 | ( | msg, | |
a, | |||
b | |||
) | ErrorPrint(PLAYER_ERR_WARN, 0, __FILE__, __LINE__, "warning : " msg "\n", a, b) |
Error message macros
Referenced by MapTransform::ProcessMessage().
#define PLAYER_WARN3 | ( | msg, | |
a, | |||
b, | |||
c | |||
) | ErrorPrint(PLAYER_ERR_WARN, 0, __FILE__, __LINE__, "warning : " msg "\n", a, b, c) |
Error message macros
#define PLAYER_WARN4 | ( | msg, | |
a, | |||
b, | |||
c, | |||
d | |||
) | ErrorPrint(PLAYER_ERR_WARN, 0, __FILE__, __LINE__, "warning : " msg "\n", a, b, c, d) |
Error message macros
#define PLAYER_WARN5 | ( | msg, | |
a, | |||
b, | |||
c, | |||
d, | |||
e | |||
) | ErrorPrint(PLAYER_ERR_WARN, 0, __FILE__, __LINE__, "warning : " msg "\n", a, b, c, d, e) |
Error message macros
#define PLAYER_WARN6 | ( | msg, | |
a, | |||
b, | |||
c, | |||
d, | |||
e, | |||
f | |||
) | ErrorPrint(PLAYER_ERR_WARN, 0, __FILE__, __LINE__, "warning : " msg "\n", a, b, c, d, e, f) |
Error message macros
#define PLAYER_WARN7 | ( | msg, | |
a, | |||
b, | |||
c, | |||
d, | |||
e, | |||
f, | |||
g | |||
) | ErrorPrint(PLAYER_ERR_WARN, 0, __FILE__, __LINE__, "warning : " msg "\n", a, b, c, d, e, f, g) |
Error message macros