- Joined
- Aug 3, 2008
- Messages
- 2,345
I read somewhere that functions are only inlined if their arguments are used in order, and the function is only 1 line long. Does it work when the arguments are used more than once? Would this function inline, for example?
JASS:
function ModuloInt takes integer divisior, integer dividend returns integer
return dividend - (dividend / divisor) * divisor
endfunction