OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2008-2013 Travis Geiselbrecht | 2 * Copyright (c) 2008-2013 Travis Geiselbrecht |
3 * | 3 * |
4 * Permission is hereby granted, free of charge, to any person obtaining | 4 * Permission is hereby granted, free of charge, to any person obtaining |
5 * a copy of this software and associated documentation files | 5 * a copy of this software and associated documentation files |
6 * (the "Software"), to deal in the Software without restriction, | 6 * (the "Software"), to deal in the Software without restriction, |
7 * including without limitation the rights to use, copy, modify, merge, | 7 * including without limitation the rights to use, copy, modify, merge, |
8 * publish, distribute, sublicense, and/or sell copies of the Software, | 8 * publish, distribute, sublicense, and/or sell copies of the Software, |
9 * and to permit persons to whom the Software is furnished to do so, | 9 * and to permit persons to whom the Software is furnished to do so, |
10 * subject to the following conditions: | 10 * subject to the following conditions: |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 #define __ALWAYS_INLINE | 151 #define __ALWAYS_INLINE |
152 #define __MAY_ALIAS | 152 #define __MAY_ALIAS |
153 #define __NO_RETURN | 153 #define __NO_RETURN |
154 #endif | 154 #endif |
155 | 155 |
156 #endif | 156 #endif |
157 | 157 |
158 /* TODO: add type check */ | 158 /* TODO: add type check */ |
159 #define countof(a) (sizeof(a) / sizeof((a)[0])) | 159 #define countof(a) (sizeof(a) / sizeof((a)[0])) |
160 | 160 |
161 /* macro-expanding concat */ | |
162 #define concat(a, b) __ex_concat(a, b) | |
163 #define __ex_concat(a, b) a ## b | |
164 | |
165 /* CPP header guards */ | 161 /* CPP header guards */ |
166 #ifdef __cplusplus | 162 #ifdef __cplusplus |
167 #define __BEGIN_CDECLS extern "C" { | 163 #define __BEGIN_CDECLS extern "C" { |
168 #define __END_CDECLS } | 164 #define __END_CDECLS } |
169 #else | 165 #else |
170 #define __BEGIN_CDECLS | 166 #define __BEGIN_CDECLS |
171 #define __END_CDECLS | 167 #define __END_CDECLS |
172 #endif | 168 #endif |
173 | 169 |
174 #endif | 170 #endif |
OLD | NEW |