[apps] Add missing min/max redefinition

This commit is contained in:
Émilie Feral
2018-09-04 11:59:09 +02:00
committed by LeaNumworks
parent b2b0f4fab0
commit 0b71e92625
2 changed files with 5 additions and 0 deletions

View File

@@ -17,6 +17,8 @@ constexpr KDColor OperatorColor = KDColor::RGB24(0xd73a49);
constexpr KDColor StringColor = KDColor::RGB24(0x032f62);
constexpr KDColor BackgroundColor = KDColorWhite;
static inline int min(int x, int y) { return (x<y ? x : y); }
static inline KDColor TokenColor(mp_token_kind_t tokenKind) {
if (tokenKind == MP_TOKEN_STRING) {
return StringColor;