-
Notifications
You must be signed in to change notification settings - Fork 3
/
common.h
33 lines (29 loc) · 1010 Bytes
/
common.h
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
/*
* common.h - common definitions
* (c) John Weber, [email protected]
*
* This file is part of the GLIVE package.
*
* Videodemo is free software: you can redistribute it and/or modify
* it under the terms of version 2 of GNU General Public License as
* published by the Free Software Foundation.
*
* Videodemo is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with the videodemo package. If not, see
* <http://www.gnu.org/licenses/>.
*/
#ifndef COMMON_H_
#define COMMON_H_
#ifdef DEBUG
#define debug_printf(...) \
do { if (DEBUG) fprintf(stderr, ##__VA_ARGS__); } while (0)
#else
#define debug_printf(...) \
do { if (0) fprintf(stderr, ##__VA_ARGS__); } while (0)
#endif
#endif /* COMMON_H_ */