File: n_token.t

package info (click to toggle)
mcpp 2.7.2-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 8,152 kB
  • ctags: 29,136
  • sloc: ansic: 35,238; sh: 9,241; makefile: 176; cpp: 84; exp: 18
file content (18 lines) | stat: -rw-r--r-- 436 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* n_token.t:   special pp-token in C++ */

#define str( a)     xstr( a)
#define xstr( a)    # a
#define paste( a, b)    a ## b

/* token.1: '::' is a token in C++, although illegal token sequence
    in C    */
    /* "::";    */
    str( paste( :, :));

/* token.2: 'and', 'or', 'not', etc. are tokens in C++, although in C
    these are macros defined by <iso646.h>  */
    /* "xor";   */
#if 1 and 2 or not 3
    str( xor);
#endif