File: n_token.cc

package info (click to toggle)
mcpp 2.7.2-1.1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 8,148 kB
  • sloc: ansic: 35,244; sh: 9,241; makefile: 176; cpp: 84; exp: 18
file content (18 lines) | stat: -rw-r--r-- 436 bytes parent folder | download | duplicates (16)
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