🎨 Macros for optional arguments (#21969)

This commit is contained in:
Scott Lahteine authored and Scott Lahteine committed 2021-05-29 15:09:07 -05:00
1 parent 61f2bb1228
commit e75c3b6c54
28 files changed
+120 -351

No files matched your search

@@ -103,9 +103,7 @@ public:
}
static float get_z(const xy_pos_t &pos
#if ENABLED(ENABLE_LEVELING_FADE_HEIGHT)
, const_float_t factor=1.0f
#endif
OPTARG(ENABLE_LEVELING_FADE_HEIGHT, const_float_t factor=1.0f)
) {
#if DISABLED(ENABLE_LEVELING_FADE_HEIGHT)
constexpr float factor = 1.0f;