On 09/01/2011 06:36 AM, Dodji Seketeli wrote:
+#ifdef ENABLE_CHECKING + +/* Assertion macro to be used in line-map code. */ +#define linemap_assert(EXPR) \ + do { \ + if (! (EXPR)) \ + abort (); \ + } while (0) + +/* Assert that MAP encodes locations of tokens that are not part of + the replacement-list of a macro expansion. */ +#define linemap_check_ordinary(LINE_MAP) __extension__ \ + ({linemap_assert (!linemap_macro_expansion_map_p (LINE_MAP)); \ + (LINE_MAP);})
If you're going to use a statement-expression, you need to check that you're being compiled with GCC; tree.h uses
#if defined ENABLE_TREE_CHECKING && (GCC_VERSION >= 2007)
- if (highest >0xF0000000) + if (highest > 0xF0000000)
Unnecessary whitespace change. OK with those changes. Jason