Skip to content

Commit

Permalink
Replace const float with a macro "type"
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Apr 1, 2021
1 parent 600ef1e commit 481092d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Marlin/src/core/macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -607,3 +607,9 @@
#define MAP0(f, x, peek, ...) f(x) MAP_NEXT (peek, MAP1) (f, peek, __VA_ARGS__)
#define MAP1(f, x, peek, ...) f(x) MAP_NEXT (peek, MAP0) (f, peek, __VA_ARGS__)
#define MAP(f, ...) EVAL512 (MAP1 (f, __VA_ARGS__, (), 0))

#ifdef __AVR__
#define const_float_t const float &
#else
#define const_float_t const float
#endif

0 comments on commit 481092d

Please sign in to comment.