MCPcopy Create free account
hub / github.com/crawl/crawl / userfunc_index

Function userfunc_index

crawl-ref/source/macro.cc:118–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116static cmd_to_key_map _cmds_to_keys[KMC_CONTEXT_COUNT];
117
118static inline int userfunc_index(int key)
119{
120 int index = (key <= USERFUNCBASE ? USERFUNCBASE - key : -1);
121 return index < 0 || index >= (int) userfunctions.size()? -1 : index;
122}
123
124static int userfunc_index(const keyseq &seq)
125{

Callers 3

is_userfunctionFunction · 0.85
get_userfunctionFunction · 0.85
userfunc_referencedFunction · 0.85

Calls 2

sizeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected