File: define.h

package info (click to toggle)
breathe 4.36.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,224 kB
  • sloc: python: 12,703; cpp: 1,737; makefile: 523; xml: 168; sh: 54; ansic: 52
file content (31 lines) | stat: -rw-r--r-- 510 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
 * A simple define without a value
 */
#define USE_STUFF


/**
 * A define with a simple value
 */
#define MAX_LENGTH 100


/**
 * A define with some parameters
 *
 * \param A The parameter A
 * \param B The parameter B
 *
 * \returns The maximum of A and B
 */
#define MAXIMUM(A,B) ((A > B)?(A):(B))


/**
 * A define which spans multiple lines
 */
#define SWAP(A,B) {             \
                    (a) ^= (b); \
                    (b) ^= (a); \
                    (a) ^= (b); \
                  }