Mercurial > minori
diff src/core/date.cpp @ 36:2743011a6042
*: mass update
formatted all source files, converted ALL instances of setStyleSheet() to
palettes and fonts (stylesheets suck), and I changed the clang-format file because
it wasn't working on my laptop for some reason.
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Thu, 21 Sep 2023 15:17:47 -0400 |
parents | cde8f67a7c7d |
children | d8eb763e6661 |
line wrap: on
line diff
--- a/src/core/date.cpp Thu Sep 21 11:43:24 2023 -0400 +++ b/src/core/date.cpp Thu Sep 21 15:17:47 2023 -0400 @@ -6,25 +6,25 @@ /* An implementation of AniList's "fuzzy date" */ -#define MIN(A, B) \ - ({ \ - __typeof__(A) __a = (A); \ - __typeof__(B) __b = (B); \ - __a < __b ? __a : __b; \ +#define MIN(A, B) \ + ({ \ + __typeof__(A) __a = (A); \ + __typeof__(B) __b = (B); \ + __a < __b ? __a : __b; \ }) -#define MAX(A, B) \ - ({ \ - __typeof__(A) __a = (A); \ - __typeof__(B) __b = (B); \ - __a < __b ? __b : __a; \ +#define MAX(A, B) \ + ({ \ + __typeof__(A) __a = (A); \ + __typeof__(B) __b = (B); \ + __a < __b ? __b : __a; \ }) -#define CLAMP(x, low, high) \ - ({ \ - __typeof__(x) __x = (x); \ - __typeof__(low) __low = (low); \ - __typeof__(high) __high = (high); \ - __x > __high ? __high : (__x < __low ? __low : __x); \ +#define CLAMP(x, low, high) \ + ({ \ + __typeof__(x) __x = (x); \ + __typeof__(low) __low = (low); \ + __typeof__(high) __high = (high); \ + __x > __high ? __high : (__x < __low ? __low : __x); \ }) Date::Date() {