MLIB
Loading...
Searching...
No Matches
dprintf.h File Reference

Definition of dprintf () function. More...

Go to the source code of this file.

Macros

#define MAX_DPRINTF_CHARS   1024
 maximum message size
 

Functions

bool dprintf (const char *fmt,...)
 A printf-style function, writes debug messages.
 

Detailed Description

Definition of dprintf () function.

Function Documentation

◆ dprintf()

bool dprintf ( const char * fmt,
... )

A printf-style function, writes debug messages.

On Windows platform, the function uses the OutputDebugString API call to generate the output. On other platforms, output is sent to stderr.

Message length is limited to MAX_DPRINTF_CHARS characters.

Parameters
fmtprint format
Returns
true if successful, false otherwise
Note
Function is thread-safe. Calls from different threads are serialized by a critical section object.