Commit e7fa9672 authored by Alexander Hirsch's avatar Alexander Hirsch
Browse files

Add preprocessor defines section

parent 33865822
......@@ -492,6 +492,20 @@ More about this later in C++…
#include <stdio.h>
```
## Defines
```c
#define CLAMP(x,low,heigh) (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x)))
```
```c
#define FOO \
do { \
do_stuff(); \
do_other_stuff(); \
} while (0)
```
## Header Guards
```c
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment