2 * Allow an arbitrary sequence of case labels.
4 * Copyright (C) 2006-2010 Wayne Davison
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, visit the http://fsf.org website.
20 /* This is included multiple times, once for every segement in a switch statement.
21 * This produces the next "case N:" statement in sequence. */
23 #if !defined CASE_N_STATE_0
24 #define CASE_N_STATE_0
26 #elif !defined CASE_N_STATE_1
27 #define CASE_N_STATE_1
29 #elif !defined CASE_N_STATE_2
30 #define CASE_N_STATE_2
32 #elif !defined CASE_N_STATE_3
33 #define CASE_N_STATE_3
35 #elif !defined CASE_N_STATE_4
36 #define CASE_N_STATE_4
38 #elif !defined CASE_N_STATE_5
39 #define CASE_N_STATE_5
41 #elif !defined CASE_N_STATE_6
42 #define CASE_N_STATE_6
44 #elif !defined CASE_N_STATE_7
45 #define CASE_N_STATE_7
47 #elif !defined CASE_N_STATE_8
48 #define CASE_N_STATE_8
50 #elif !defined CASE_N_STATE_9
51 #define CASE_N_STATE_9
53 #elif !defined CASE_N_STATE_10
54 #define CASE_N_STATE_10
56 #elif !defined CASE_N_STATE_11
57 #define CASE_N_STATE_11
59 #elif !defined CASE_N_STATE_12
60 #define CASE_N_STATE_12
62 #elif !defined CASE_N_STATE_13
63 #define CASE_N_STATE_13
65 #elif !defined CASE_N_STATE_14
66 #define CASE_N_STATE_14
68 #elif !defined CASE_N_STATE_15
69 #define CASE_N_STATE_15
71 #elif !defined CASE_N_STATE_16
72 #define CASE_N_STATE_16
75 #error Need to add more case statements!