aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
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
parentabe95609fd29a146cd5dd9b31724767004d03e74 (diff)
downloadsparse-dev-e7a1edc302dd9116bb75a64474f7b2c2eae38289.tar.gz
Add explanatory comment about direct use of __IDENT for preprocessor idents.
Signed-off-by: Josh Triplett <josh@freedesktop.org>
-rw-r--r--ident-list.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ident-list.h b/ident-list.h
index aae2d022..0f654bff 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);