diff options
| author | Josh Triplett <josh@freedesktop.org> | 2007-05-22 19:23:11 -0700 |
|---|---|---|
| committer | Josh Triplett <josh@freedesktop.org> | 2007-05-22 19:23:11 -0700 |
| commit | e7a1edc302dd9116bb75a64474f7b2c2eae38289 (patch) | |
| tree | afc1ec96905cbf43bb2ec3ba37082092dfec9733 | |
| parent | abe95609fd29a146cd5dd9b31724767004d03e74 (diff) | |
| download | sparse-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.h | 4 |
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); |
