aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Triplett <josh@freedesktop.org>2007-05-22 19:23:11 -0700
committerJosh Triplett <josh@freedesktop.org>2007-05-22 19:23:11 -0700
commite7a1edc302dd9116bb75a64474f7b2c2eae38289 (patch)
treeafc1ec96905cbf43bb2ec3ba37082092dfec9733 /ident-list.h
parentAdd no-double-underscore variant format_arg. (diff)
downloadsparse-e7a1edc302dd9116bb75a64474f7b2c2eae38289.tar.gz
sparse-e7a1edc302dd9116bb75a64474f7b2c2eae38289.tar.bz2
sparse-e7a1edc302dd9116bb75a64474f7b2c2eae38289.zip
Add explanatory comment about direct use of __IDENT for preprocessor idents.
Signed-off-by: Josh Triplett <josh@freedesktop.org>
Diffstat (limited to 'ident-list.h')
-rw-r--r--ident-list.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ident-list.h b/ident-list.h
index aae2d02..0f654bf 100644
--- a/ident-list.h
+++ b/ident-list.h
@@ -78,7 +78,9 @@ IDENT(fastcall); IDENT(__fastcall__);
IDENT(dllimport); IDENT(__dllimport__);
IDENT(dllexport); IDENT(__dllexport__);
-/* Preprocessor idents */
+/* Preprocessor idents. Direct use of __IDENT avoids mentioning the keyword
+ * itself by name, preventing these tokens from expanding when compiling
+ * sparse. */
IDENT(defined);
__IDENT(pragma_ident, "__pragma__", 0);
__IDENT(__VA_ARGS___ident, "__VA_ARGS__", 0);