GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LEM / V4-7-1

Constituent: lem_cli     Tag: mv2304


Interface   Data Structures   File List   Data Fields   Globals  

msg_macros.h File Reference

Macros to perform some common msg functions. More...

#include <stdio.h>
#include "MSG/MSG_pubdefs.h"

Include dependency graph for msg_macros.h:

This graph shows which files directly or indirectly include this file:


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 to perform some common msg functions.

Author:
James Swain - jswain@slac.stanford.edu

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 Thu Apr 13 22:59:03 2006 by  doxygen 1.4.4