Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
debug.h File Reference

Call tracing for functions you do not want to edit every caller of. More...

#include "common/logging.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 DT_DEBUG_TRACE_WRAPPER(thread, function, ...)
 
#define DT_DEBUG_TRACE_WRAPPER_VOID(thread, function)
 

Detailed Description

Call tracing for functions you do not want to edit every caller of.

Note
This header used to also carry the DT_DEBUG_SQLITE3_* family, so a file wanting DT_DEBUG_TRACE_WRAPPER – which has nothing to do with SQL – got database.h and <sqlite3.h> with it. Those macros live in database/sql_debug.h now, next to the connection they call into.

Definition in file debug.h.

Macro Definition Documentation

◆ DT_DEBUG_TRACE_WRAPPER

#define DT_DEBUG_TRACE_WRAPPER (   thread,
  function,
  ... 
)
Value:
do { \
dt_vprint((thread), "[debug_trace] %s is called from %s at %s:%d\n", \
#function, __FUNCTION__, __FILE__, __LINE__); \
function(__VA_ARGS__); \
} while (0)

Definition at line 57 of file debug.h.

◆ DT_DEBUG_TRACE_WRAPPER_VOID

#define DT_DEBUG_TRACE_WRAPPER_VOID (   thread,
  function 
)
Value:
do { \
dt_vprint((thread), "[debug_trace] %s is called from %s at %s:%d\n", \
#function, __FUNCTION__, __FILE__, __LINE__); \
function(); \
} while (0)

Definition at line 67 of file debug.h.