2 * Allow an arbitrary sequence of case labels.
4 * Copyright (C) 2006-2020 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 segment 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
30 #elif !defined CASE_N_STATE_2
31 #define CASE_N_STATE_2
34 #elif !defined CASE_N_STATE_3
35 #define CASE_N_STATE_3
38 #elif !defined CASE_N_STATE_4
39 #define CASE_N_STATE_4
42 #elif !defined CASE_N_STATE_5
43 #define CASE_N_STATE_5
46 #elif !defined CASE_N_STATE_6
47 #define CASE_N_STATE_6
50 #elif !defined CASE_N_STATE_7
51 #define CASE_N_STATE_7
54 #elif !defined CASE_N_STATE_8
55 #define CASE_N_STATE_8
58 #elif !defined CASE_N_STATE_9
59 #define CASE_N_STATE_9
62 #elif !defined CASE_N_STATE_10
63 #define CASE_N_STATE_10
66 #elif !defined CASE_N_STATE_11
67 #define CASE_N_STATE_11
70 #elif !defined CASE_N_STATE_12
71 #define CASE_N_STATE_12
74 #elif !defined CASE_N_STATE_13
75 #define CASE_N_STATE_13
78 #elif !defined CASE_N_STATE_14
79 #define CASE_N_STATE_14
82 #elif !defined CASE_N_STATE_15
83 #define CASE_N_STATE_15
86 #elif !defined CASE_N_STATE_16
87 #define CASE_N_STATE_16
91 #error Need to add more case statements!