Format & comment code
This commit is contained in:
1 parent
527f6d8d9a
commit
7e70371197
1 file changed
+6
-4
@@ -990,7 +990,7 @@ M_BEGIN_PROTECTED_CODE
|
||||
#define M_MIDI(f, ...) f(__VA_ARGS__)
|
||||
|
||||
|
||||
/* Return the value of the "array" associated to the given index.
|
||||
/* Return the value of the "array" associated to the given index (zero based).
|
||||
EXAMPLE: M_GET_AT((f_0,f_1,f_2),1) returns f_1
|
||||
Can be chained with NARGS().
|
||||
*/
|
||||
@@ -1023,11 +1023,13 @@ M_BEGIN_PROTECTED_CODE
|
||||
#define M_OR(x,y) M_C3(M_ORI_, x, y)
|
||||
|
||||
|
||||
/* M_IF Macro :
|
||||
/* M_IF Macro : Perform an IF test at preprocessing time.
|
||||
The condition is assumed to be true if unkown.
|
||||
USAGE
|
||||
M_IF(condition)(Block if true, Block if false)
|
||||
Example: M_IF(0)(true_action, false_action) --> false_action */
|
||||
#define M_IFI_0(true_macro, ...) __VA_ARGS__
|
||||
#define M_IFI_1(true_macro, ...) true_macro
|
||||
#define M_IFI_0(true_c, ...) __VA_ARGS__
|
||||
#define M_IFI_1(true_c, ...) true_c
|
||||
#define M_IF(c) M_C(M_IFI_, M_BOOL(c))
|
||||
|
||||
/* Return 1 if there is a comma inside the argument list,
|
||||
|
||||
Reference in new issue
Block a user