forked from marco-pag/fred-linux-test-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdbg_print.h
More file actions
34 lines (25 loc) · 1.04 KB
/
dbg_print.h
File metadata and controls
34 lines (25 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
* Fred for Linux. Experimental support.
*
* Copyright (C) 2018-2021, Marco Pagani, ReTiS Lab.
* <marco.pag(at)outlook.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation either version 2.
*/
#ifndef SRC_UTILS_DBG_PRINT_H_
#define SRC_UTILS_DBG_PRINT_H_
//---------------------------------------------------------------------------------------------
#include <stdio.h>
//---------------------------------------------------------------------------------------------
// FIXME: change verbosity of the FRED CLIENT LIBRARY!!
// #define DBG_VERBOSE
//---------------------------------------------------------------------------------------------
#ifdef DBG_VERBOSE
#define DBG_PRINT(...) do { fprintf(stderr, __VA_ARGS__ ); } while (0)
#else
#define DBG_PRINT(...) do { } while (0)
#endif
//---------------------------------------------------------------------------------------------
#endif /* SRC_UTILS_DBG_PRINT_H_ */