WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
debug_print.h File Reference
#include <string.h>
#include <stdio.h>

Go to the source code of this file.

Macros

#define DEBUG   1
 
#define debug_print(fmt, ...)
 

Macro Definition Documentation

◆ DEBUG

#define DEBUG   1

◆ debug_print

#define debug_print ( fmt,
... )
Value:
do { if (DEBUG) fprintf(stderr, "%s:%d:%s(): " fmt, strrchr("/"__FILE__,'/')+1, \
__LINE__, __func__, ##__VA_ARGS__); fflush(stderr);} while (0)
#define DEBUG
Definition debug_print.h:33
auto fprintf(std::FILE *f, const S &fmt, const T &... args) -> int
Formats args according to specifications in fmt and writes the output to f.
Definition printf.h:600