blob: 259a3e80a06cf4aa3d6af7cf01cf8ab0bc837c03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/*********************************************************************
*
* Purpose: Demonstrate the #define pre-processor.
* Author: M J Leslie
* Date: 26-Jun-94
*
*********************************************************************/
#define EQ ==
main ()
{
/* the EQ is translated to == by
* the C pre-processor. COOL!
*/
if ( 5 EQ 5 ) printf("define works...\n");
}
|