le_print.h File Reference

Go to the source code of this file.

Macros

#define LE_PRINT_VALUE(formatSpec, value)   LE_DEBUG( STRINGIZE(value) "=" formatSpec, value)
 
#define LE_PRINT_VALUE_IF(condition, formatSpec, value)
 
#define LE_PRINT_ARRAY(formatSpec, size, array)
 

Detailed Description

Macro Definition Documentation

#define LE_PRINT_ARRAY (   formatSpec,
  size,
  array 
)
Value:
{ \
int i; \
LE_DEBUG( STRINGIZE(array) ); \
for (i=0; i<(size_t)size; i++) \
LE_DEBUG( "\t" STRINGIZE(array) "[%i]=" formatSpec, i, array[i]); \
}
#define STRINGIZE(x)
Definition: le_basics.h:206
#define LE_DEBUG(formatString,...)
Debug message.
Definition: le_log.h:484

Print an array of values using specified format for each value.

Parameters
formatSpecLE_DEBUG format; must be a string literal
sizeArray size
arrayArray name
#define LE_PRINT_VALUE (   formatSpec,
  value 
)    LE_DEBUG( STRINGIZE(value) "=" formatSpec, value)

Print a single value using specified format.

Parameters
formatSpecLE_DEBUG format; must be a string literal
valueVariable name; must not be a literal
#define LE_PRINT_VALUE_IF (   condition,
  formatSpec,
  value 
)
Value:
if (condition) \
{ LE_PRINT_VALUE(formatSpec, value); }
#define LE_PRINT_VALUE(formatSpec, value)
Definition: le_print.h:33

Print a single value using specified format, if condition is met.

Parameters
conditionBoolean
formatSpecLE_DEBUG format; must be a string literal
valueVariable name; must not be a literal