diff options
author | 2007-05-22 19:23:11 -0700 | |
---|---|---|
committer | 2007-05-22 19:23:11 -0700 | |
commit | e7a1edc302dd9116bb75a64474f7b2c2eae38289 (patch) | |
tree | afc1ec96905cbf43bb2ec3ba37082092dfec9733 /ident-list.h | |
parent | Add no-double-underscore variant format_arg. (diff) | |
download | sparse-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.h | 4 |
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); |