summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-04-04 22:19:04 -0400
committerJune McEnroe <june@causal.agency>2019-04-04 22:19:04 -0400
commitfa5a2a2e481826e71919feafbfbeaa9c98cdedd2 (patch)
tree893a69acab6819d6714981886ba473edcbf5b6a5
parentAdd listClear (diff)
downloadwep-fa5a2a2e481826e71919feafbfbeaa9c98cdedd2.tar.gz
wep-fa5a2a2e481826e71919feafbfbeaa9c98cdedd2.zip
Mark card functions inline
-rw-r--r--stack.h6
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);
 }