-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.h
35 lines (28 loc) · 1.03 KB
/
config.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
34
35
/**************************************************************************/
/* config.h */
/**************************************************************************/
#ifndef CONFIG_H
#define CONFIG_H
/**************************************************************************/
#ifdef __cplusplus
# define CPLUS
# define BEGIN_HEADER extern "C"{
# define END_HEADER }
# define EXTERN extern "C"
#else
# define BEGIN_HEADER /* nothing */
# define END_HEADER /* nothing */
# define EXTERN extern
#endif
/**************************************************************************/
/*
The following macro helps define argument lists for fns: the arg lists are
eaten up when not allowed (as in C). e.g. extern int foo ARGS((int, int));
*/
#if defined(__STDC__) || defined(__cplusplus)
# define ARGS(args) args
#else
# define ARGS(args) ()
#endif
/**************************************************************************/
#endif /* CONFIG_H */