diff options
author | Nick Brassel <nick@tzarc.org> | 2022-03-08 16:58:05 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-08 16:58:05 +1100 |
commit | 2f6751e48a37699cfd999e0afd8731ca3962611c (patch) | |
tree | c64605c10a8f8f758f46be209d79210bbf15c167 /quantum/util.h | |
parent | 2218690d0b718dc68de4c5d093f1ec8e55d82d00 (diff) | |
download | qmk_firmware-2f6751e48a37699cfd999e0afd8731ca3962611c.tar.gz qmk_firmware-2f6751e48a37699cfd999e0afd8731ca3962611c.zip |
Asymmetric encoders, encoder tests. (#16068)
Diffstat (limited to 'quantum/util.h')
-rw-r--r-- | quantum/util.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/quantum/util.h b/quantum/util.h index bef3b9abe3..ab96ce4bde 100644 --- a/quantum/util.h +++ b/quantum/util.h @@ -24,3 +24,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. // convert to string #define STR(s) XSTR(s) #define XSTR(s) #s + +#if !defined(MIN) +# define MIN(x, y) (((x) < (y)) ? (x) : (y)) +#endif + +#if !defined(MAX) +# define MAX(x, y) (((x) > (y)) ? (x) : (y)) +#endif |