Method CompilerEnvironment()->CPP()->define_macro()
- Method
define_macro
 voiddefine_macro(stringname,string|object|array|function(:void)|voidvalue,int(-1..)|voidnumargs,CppMacroFlags|voidflags)- Description
 Define a cpp macro.
- Parameter 
name Name of macro to define. Ending the name with
"()"changes the defaults fornumargsandflagsto0and3respectively.- Parameter 
value Macro definition. Defaults to
"1".- Parameter 
numargs Number of required arguments to a function-style macro.
-1indicates not function-style. Defaults to-1.- Parameter 
flags Bit-wise or of flags affecting the macro behavior:
CPP_MACRO_VARARGSFunction style macro with a variable number of arguments. Invalid if
numargsis-1.CPP_MACRO_KEEP_NLKeep newlines emitted by the macro.
Defaults to
0.- See also