xref: /Universal-ctags/main/inline.h (revision 741d9cb641d0953f70e1404f3b958b73df52f947)
1 /*
2  *
3  *  Copyright (c) 2016, 2017 Matthew Brush
4  *
5  *
6  *   This source code is released for free distribution under the terms of the
7  *   GNU General Public License version 2 or (at your option) any later version.
8  *
9  */
10 
11 #ifndef CTAGS_MAIN_INLINE_H
12 #define CTAGS_MAIN_INLINE_H
13 
14 #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
15 # define CTAGS_INLINE static inline
16 #elif defined(_MSC_VER)
17 # define CTAGS_INLINE static __inline
18 #elif defined(__GNUC__) || defined(__clang__)
19 # define CTAGS_INLINE static __inline__
20 // #elif ... other compilers/tests here ...
21 // # define CTAGS_INLINE ...
22 #else
23 # define CTAGS_INLINE static
24 #endif
25 
26 #endif /* CTAGS_MAIN_INLINE_H */
27