summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/macro.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2010-12-01 12:23:40 +0100
committerAdam Borowski <kilobyte@angband.pl>2010-12-01 12:23:40 +0100
commit0be8ee0dcdb98c460a8947efe396e7a2bda927ea (patch)
treeb7931bb2153e1a66c60ee1f1c13e79bd9649ad5a /crawl-ref/source/macro.cc
parent73fab0d36053e6293d1c151c10a4320074c8f2a2 (diff)
downloadcrawl-ref-0be8ee0dcdb98c460a8947efe396e7a2bda927ea.tar.gz
crawl-ref-0be8ee0dcdb98c460a8947efe396e7a2bda927ea.zip
Make an inlined function static.
Diffstat (limited to 'crawl-ref/source/macro.cc')
-rw-r--r--crawl-ref/source/macro.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/macro.cc b/crawl-ref/source/macro.cc
index 8ad27d183e..8866fea102 100644
--- a/crawl-ref/source/macro.cc
+++ b/crawl-ref/source/macro.cc
@@ -104,7 +104,7 @@ typedef std::map<int, int> cmd_to_key_map;
static key_to_cmd_map _keys_to_cmds[KMC_CONTEXT_COUNT];
static cmd_to_key_map _cmds_to_keys[KMC_CONTEXT_COUNT];
-inline int userfunc_index(int key)
+static inline int userfunc_index(int key)
{
int index = (key <= USERFUNCBASE? USERFUNCBASE - key : -1);
return (index < 0 || index >= (int) userfunctions.size()? -1 : index);