ftwin 0.8.10
debug.h File Reference

UTIL debug output macros. More...

#include <stdio.h>
Include dependency graph for debug.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEBUG_ERR(str, arg...)   fprintf(stderr, "[DEBUG_ERR]: [%s] " str " at line %d\n", __FUNCTION__, ## arg, __LINE__), fflush(stderr)
 Display error message at the level error.
 
#define DEBUG_DBG(str, arg...)   fprintf(stderr, "[DEBUG_DBG]: [%s] " str " at line %d\n", __FUNCTION__, ## arg, __LINE__), fflush(stderr)
 Display error message at the level debug.
 

Detailed Description

UTIL debug output macros.

Definition in file debug.h.

Macro Definition Documentation

◆ DEBUG_DBG

#define DEBUG_DBG (   str,
  arg... 
)    fprintf(stderr, "[DEBUG_DBG]: [%s] " str " at line %d\n", __FUNCTION__, ## arg, __LINE__), fflush(stderr)

Display error message at the level debug.

Parameters
strThe format of the string.
argThe arguments to use while printing the data.

Definition at line 38 of file debug.h.

◆ DEBUG_ERR

#define DEBUG_ERR (   str,
  arg... 
)    fprintf(stderr, "[DEBUG_ERR]: [%s] " str " at line %d\n", __FUNCTION__, ## arg, __LINE__), fflush(stderr)

Display error message at the level error.

Parameters
strThe format of the string.
argThe arguments to use while printing the data.

Definition at line 31 of file debug.h.