X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=gmqcc.ini.example;h=59a27f9a2091476bd7882b41e9bb0984774d7d4f;hp=ceacf289c3fd606f43c9532171c9161fa8d464b4;hb=01f3447e5bddceabb8997c71c653080903212913;hpb=53e9ed0d9638b911d377df28505f09c0bee62a35 diff --git a/gmqcc.ini.example b/gmqcc.ini.example index ceacf28..59a27f9 100644 --- a/gmqcc.ini.example +++ b/gmqcc.ini.example @@ -84,6 +84,25 @@ FTEPP_MATHDEFS = false + #Enable indirect macro expansion. This only works in combination + #with '-fftepp' and is currently not included by '-std=fteqcc'. + #Enabling this behavior will allow the preprocessor to operate more + #like the standard C preprocessor in that it will allow arguments + #of macros which are macro-expanded to be substituted into the + #definition of the macro. As an example: + # + # #define STR1(x) #x + # #define STR2(x) STR1(x) + # #define THE_ANSWER 42 + # #define THE_ANSWER_STR STR2(THE_ANSWER) /* "42" */ + # + #With this enabled, an expansion of THE_ANSWER_STR will yield + #the string "42". With this disabled an expansion of THE_ANSWER_STR + #will yield "THE_ANSWER" + + FTEPP_INDIRECT_EXPANSION = false + + #Allow switch cases to use non constant variables. RELAXED_SWITCH = true @@ -322,6 +341,11 @@ #exception. ARITHMETIC_EXCEPTIONS = false + #Split vector-literals which are only used dirctly as function parameters + #into 3 floats stored separately to reduce the number of globals at the + #expense of additional instructions. + SPLIT_VECTOR_PARAMETERS = false + [warnings] #Generate a warning about variables which are declared but never #used. This can be avoided by adding the ‘noref’ keyword in front