summaryrefslogtreecommitdiff
path: root/Tools/LuaMacro/tests/mmath.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/LuaMacro/tests/mmath.lua')
-rw-r--r--Tools/LuaMacro/tests/mmath.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tools/LuaMacro/tests/mmath.lua b/Tools/LuaMacro/tests/mmath.lua
new file mode 100644
index 0000000..ad813b5
--- /dev/null
+++ b/Tools/LuaMacro/tests/mmath.lua
@@ -0,0 +1,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