mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-13 05:57:00 -04:00
Code cleanup: remove messy spaces before line continuation (\) in macros
This commit is contained in:
@@ -186,7 +186,7 @@ inline Type from_script(const ScriptValueP& v, Variable var) {
|
|||||||
/// Utility for defining a script rule with two named parameters, with dependencies
|
/// Utility for defining a script rule with two named parameters, with dependencies
|
||||||
#define SCRIPT_RULE_2_N_DEP(funname, type1, str1, name1, type2, str2, name2) \
|
#define SCRIPT_RULE_2_N_DEP(funname, type1, str1, name1, type2, str2, name2) \
|
||||||
SCRIPT_RULE_2_N_AUX( funname, type1, str1, name1, type2, str2, name2, \
|
SCRIPT_RULE_2_N_AUX( funname, type1, str1, name1, type2, str2, name2, \
|
||||||
virtual ScriptValueP dependencies(Context&, const Dependency&) const;, \
|
virtual ScriptValueP dependencies(Context&, const Dependency&) const; \
|
||||||
SCRIPT_FUNCTION_DEPENDENCIES(funname) { \
|
SCRIPT_FUNCTION_DEPENDENCIES(funname) { \
|
||||||
SCRIPT_PARAM_N(type1, str1, name1); \
|
SCRIPT_PARAM_N(type1, str1, name1); \
|
||||||
SCRIPT_PARAM_N(type2, str2, name2); \
|
SCRIPT_PARAM_N(type2, str2, name2); \
|
||||||
|
|||||||
@@ -102,8 +102,6 @@
|
|||||||
/** Uses a const iterator
|
/** Uses a const iterator
|
||||||
* Usage: FOR_EACH_CONST(e,collect) { body-of-loop }
|
* Usage: FOR_EACH_CONST(e,collect) { body-of-loop }
|
||||||
*/
|
*/
|
||||||
//#define FOR_EACH_CONST(Elem,Collection) \
|
|
||||||
// FOR_EACH_T(TYPEOF_CIT(Collection), TYPEOF_CREF(Collection), Elem, Collection, begin, end)
|
|
||||||
#define FOR_EACH_CONST(Elem,Collection) \
|
#define FOR_EACH_CONST(Elem,Collection) \
|
||||||
for (auto const& Elem : Collection)
|
for (auto const& Elem : Collection)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user