summaryrefslogtreecommitdiff
path: root/Tools/LuaMacro/tests/mmath.lua
blob: ad813b56a8330636a0929fe8df7c6a48b7785ae9 (plain)
1
2
3
4
5
6
7
-- shows how a macro module pulled in with require_
-- can return a substitution value. In this case,
-- it would be better to use include_, but this
-- method is more general
return function()
    return 'local sin,cos = math.sin, math.cos\n'
end