blob: 7f6bc163eea967470c9640a20b61f938e3f460b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
1. enumerations
without enumerations:
typedef enum { Up, Down, Left, Right } Direction;
typedef Direction = int;
const Direction Up = 0;
const Direction Down = 1;
...
with
|