You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
str should be used instead of the string literal 'hello'.
Workaround
This works as intended if you write it with the parameter. This is just a typo.
##[[-- create a macro that injects a custom node when calledlocal function print_macro(str) local node = aster.Call{{aster.String{str}}, aster.Id{"print"}} -- inject the node where this macro is being called from inject_astnode(node)end]]##print_macro('hello (again)')
Output:
print('hello (again)')
The text was updated successfully, but these errors were encountered:
Expected behavior
str
should be used instead of the string literal 'hello'.Workaround
This works as intended if you write it with the parameter. This is just a typo.
Output:
The text was updated successfully, but these errors were encountered: