From 27d6efb5f5a076f825fe2da1875e0cabaf02b4e7 Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 17 Nov 2021 23:03:07 +0800 Subject: + LuaMacro --- Tools/LuaMacro/tests/mmath.lua | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Tools/LuaMacro/tests/mmath.lua (limited to 'Tools/LuaMacro/tests/mmath.lua') 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 -- cgit v1.1-26-g67d0