diff options
author | June McEnroe <june@causal.agency> | 2019-04-04 22:19:04 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-04-04 22:19:04 -0400 |
commit | fa5a2a2e481826e71919feafbfbeaa9c98cdedd2 (patch) | |
tree | 893a69acab6819d6714981886ba473edcbf5b6a5 | |
parent | Add listClear (diff) | |
download | wep-fa5a2a2e481826e71919feafbfbeaa9c98cdedd2.tar.gz wep-fa5a2a2e481826e71919feafbfbeaa9c98cdedd2.zip |
Mark card functions inline
Diffstat (limited to '')
-rw-r--r-- | stack.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/stack.h b/stack.h index 61c6fc2..f5140df 100644 --- a/stack.h +++ b/stack.h @@ -29,7 +29,7 @@ typedef Sint8 Card; -static int cardSuit(Card card) { +static inline int cardSuit(Card card) { card = abs(card); if (card > Cards_Spade) { return Cards_Spade; @@ -42,11 +42,11 @@ static int cardSuit(Card card) { } } -static int cardColor(Card card) { +static inline int cardColor(Card card) { return cardSuit(card) == Cards_Diamond || cardSuit(card) == Cards_Heart; } -static int cardRank(Card card) { +static inline int cardRank(Card card) { return abs(card) - cardSuit(card); } |