]> git.xonotic.org Git - xonotic/gmqcc.git/blob - opts.def
Guard translatable strings by -ftranslatable-strings, defaults to ON with -std=fteqcc
[xonotic/gmqcc.git] / opts.def
1 /*
2  * Copyright (C) 2012
3  *     Wolfgang Bumiller
4  *     Dale Weiler
5  *
6  * Permission is hereby granted, free of charge, to any person obtaining a copy of
7  * this software and associated documentation files (the "Software"), to deal in
8  * the Software without restriction, including without limitation the rights to
9  * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10  * of the Software, and to permit persons to whom the Software is furnished to do
11  * so, subject to the following conditions:
12  *
13  * The above copyright notice and this permission notice shall be included in all
14  * copies or substantial portions of the Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22  * SOFTWARE.
23  */
24 #ifndef GMQCC_DEFINE_FLAG
25 #   define GMQCC_DEFINE_FLAG(x)
26 #endif
27
28 /* codegen flags */
29 #ifdef GMQCC_TYPE_FLAGS
30     GMQCC_DEFINE_FLAG(OVERLAP_LOCALS)
31     GMQCC_DEFINE_FLAG(DARKPLACES_STRING_TABLE_BUG)
32     GMQCC_DEFINE_FLAG(OMIT_NULL_BYTES)
33     GMQCC_DEFINE_FLAG(ADJUST_VECTOR_FIELDS)
34     GMQCC_DEFINE_FLAG(FTEPP)
35     GMQCC_DEFINE_FLAG(RELAXED_SWITCH)
36     GMQCC_DEFINE_FLAG(SHORT_LOGIC)
37     GMQCC_DEFINE_FLAG(PERL_LOGIC)
38     GMQCC_DEFINE_FLAG(TRANSLATABLE_STRINGS)
39 #endif
40
41 /* warning flags */
42 #ifdef GMQCC_TYPE_WARNS
43     GMQCC_DEFINE_FLAG(DEBUG)
44     GMQCC_DEFINE_FLAG(UNUSED_VARIABLE)
45     GMQCC_DEFINE_FLAG(USED_UNINITIALIZED)
46     GMQCC_DEFINE_FLAG(UNKNOWN_CONTROL_SEQUENCE)
47     GMQCC_DEFINE_FLAG(EXTENSIONS)
48     GMQCC_DEFINE_FLAG(FIELD_REDECLARED)
49     GMQCC_DEFINE_FLAG(MISSING_RETURN_VALUES)
50     GMQCC_DEFINE_FLAG(TOO_FEW_PARAMETERS)
51     GMQCC_DEFINE_FLAG(LOCAL_SHADOWS)
52     GMQCC_DEFINE_FLAG(LOCAL_CONSTANTS)
53     GMQCC_DEFINE_FLAG(VOID_VARIABLES)
54     GMQCC_DEFINE_FLAG(IMPLICIT_FUNCTION_POINTER)
55     GMQCC_DEFINE_FLAG(VARIADIC_FUNCTION)
56     GMQCC_DEFINE_FLAG(FRAME_MACROS)
57     GMQCC_DEFINE_FLAG(EFFECTLESS_STATEMENT)
58     GMQCC_DEFINE_FLAG(END_SYS_FIELDS)
59     GMQCC_DEFINE_FLAG(ASSIGN_FUNCTION_TYPES)
60     GMQCC_DEFINE_FLAG(PREPROCESSOR)
61     GMQCC_DEFINE_FLAG(MULTIFILE_IF)
62     GMQCC_DEFINE_FLAG(DOUBLE_DECLARATION)
63     GMQCC_DEFINE_FLAG(CONST_VAR)
64 #endif
65
66 /* some cleanup so we don't have to */
67 #undef GMQCC_TYPE_FLAGS
68 #undef GMQCC_TYPE_WARNS
69 #undef GMQCC_DEFINE_FLAG