Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: include/compiler.h

Issue 1737903002: Move concat define to the one place that needs it. (Closed) Base URL: https://github.com/littlekernel/lk.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | include/dev/driver.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | include/dev/driver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698