1
0
mirror of https://github.com/Adorable-Catgirl/LuaComp.git synced 2024-11-27 04:08:05 +11:00
LuaComp/examples/macro2.lua

8 lines
197 B
Lua
Raw Normal View History

@[[function my_macro(a, b)]]
print("Hello, @[{a}]. Your lucky number is @[{b}].")
@[[end]]
@[[my_macro("world", 7)]]
@[[my_macro("user", 42)]]
@[[my_macro("Earth", 0)]]
@[[my_macro("Satna", 666)]]