| 1 | /* enums_getText.h |
| 2 | * |
| 3 | * Copyright (C) 2007,2015,2017 Paul Boersma |
| 4 | * |
| 5 | * This code is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; either version 2 of the License, or (at |
| 8 | * your option) any later version. |
| 9 | * |
| 10 | * This code is distributed in the hope that it will be useful, but |
| 11 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 13 | * See the GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this work. If not, see <http://www.gnu.org/licenses/>. |
| 17 | */ |
| 18 | |
| 19 | /* See enums.h */ |
| 20 | |
| 21 | /* For C++ files. */ |
| 22 | |
| 23 | #undef enums_begincxx . . $ `melder/enums.h:23:9`! |
| 24 | #undef enums_addcxx . . $ `melder/enums.h:24:9`! |
| 25 | #undef enums_altcxx . . $ `melder/enums.h:25:9`! |
| 26 | #undef enums_endcxx . . $ `melder/enums.h:26:9`! |
| 27 | #define enums_begincxx . . $ `melder/enums_getText.h:27:9`!(kType,minimum) conststring32 kType##_getText (kType testValue) { return |
| 28 | #define enums_addcxx . . $ `melder/enums_getText.h:28:9`!(kType,value,which,text) testValue == kType::which ? text : |
| 29 | #define enums_altcxx . . $ `melder/enums_getText.h:29:9`!(kType,which,text) |
| 30 | #define enums_endcxx . . $ `melder/enums_getText.h:30:9`!(kType,maximum,def) kType##_getText (kType::DEFAULT); } |
| 31 | |
| 32 | /* End of file enums_getText.h */ |