GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LEM / V4-8-1 > t_lemcrl / rad750
#include <MSG/MSG_pubdefs.h>
#include <stdio.h>
Defines | |
#define | _printf(msg, format, args...) |
Provide printf-like functionality using MSG information message. | |
#define | CHECK_CALL(FUNC) |
Call a function and check the return value. | |
Enumerations | |
enum | { PRINTSIZE = 256 } |
$Id: msg_macros.h,v 1.2 2011/03/25 18:51:52 apw Exp $
#define _printf | ( | msg, | |||
format, | |||||
args... | ) |
Value:
{ \ char buffer[PRINTSIZE];\ sprintf(buffer, "%s():%05d "format"." , __func__, __LINE__ , ## args); \ _msg_report(msg, 0, 1, buffer); \ }
#define CHECK_CALL | ( | FUNC | ) |
Value:
{ \ unsigned status = FUNC;\ if(_msg_failure(status)) return status;\ }