Zero  0.1.0
Macros | Functions
trace_force.h File Reference

Exports TRACE_FORCE(). TRACE_FORCE() should only be invoked by code within the tracing module. All code outside the trace module should invoke TRACE(). More...

#include <cstdarg>

Go to the source code of this file.

Macros

#define TRACE_FORCE(format, rest...)   trace_force_(__FILE__, __LINE__, __FUNCTION__, format, ##rest)
 Used by TRACE() to report an error. More...
 

Functions

void trace_force_ (const char *filename, int line_num, const char *function_name, char *format,...) __attribute__((format(printf
 

Detailed Description

Exports TRACE_FORCE(). TRACE_FORCE() should only be invoked by code within the tracing module. All code outside the trace module should invoke TRACE().

Bug:
See trace_force.cpp.

Macro Definition Documentation

§ TRACE_FORCE

#define TRACE_FORCE (   format,
  rest... 
)    trace_force_(__FILE__, __LINE__, __FUNCTION__, format, ##rest)

Used by TRACE() to report an error.

Parameters
formatThe format string for the printing. Format follows that of printf(3).
restOptional arguments that can printed (see printf(3) definition for more details).
Returns
void

Function Documentation

§ trace_force_()

void trace_force_ ( const char *  filename,
int  line_num,
const char *  function_name,
char *  format,
  ... 
)