GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LEM / V4-8-1 > t_lemcrl / rhel6-64


Interface   Data Structures   File List   Data Fields   Globals  

msg_macros.h File Reference

Macros used to perform some common message funstions. More...

#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 }


Detailed Description

Macros used to perform some common message funstions.

Author:
James Swain & Owen Saxton
$Id: msg_macros.h,v 1.2 2011/03/25 18:51:52 apw Exp $

Define Documentation

#define _printf ( msg,
format,
args...   ) 

Value:

{ \
   char buffer[PRINTSIZE];\
   sprintf(buffer, "%s():%05d "format"." , __func__, __LINE__ , ## args); \
   _msg_report(msg, 0, 1, buffer); \
 }
Provide printf-like functionality using MSG information message.

#define CHECK_CALL ( FUNC   ) 

Value:

{ \
  unsigned status = FUNC;\
  if(_msg_failure(status)) return status;\
}
Call a function and check the return value.


Generated on Tue Nov 29 16:32:56 2011 by  doxygen 1.5.8