]> Nishi Git Mirror - gwion.git/commitdiff
:bug: Fix multiline macros
authorJérémie Astor <fennecdjay@gmail.com>
Thu, 5 Aug 2021 13:15:41 +0000 (15:15 +0200)
committerJérémie Astor <fennecdjay@gmail.com>
Thu, 5 Aug 2021 13:16:16 +0000 (15:16 +0200)
ast
tests/pp/multiline_macro.gw [new file with mode: 0644]

diff --git a/ast b/ast
index ba2a75d2445c1d107569c52fd69364e0142d80fb..1f0dc4b7753bb88bc55e161c144f60a8a0c4791e 160000 (submodule)
--- a/ast
+++ b/ast
@@ -1 +1 @@
-Subproject commit ba2a75d2445c1d107569c52fd69364e0142d80fb
+Subproject commit 1f0dc4b7753bb88bc55e161c144f60a8a0c4791e
diff --git a/tests/pp/multiline_macro.gw b/tests/pp/multiline_macro.gw
new file mode 100644 (file)
index 0000000..4e43a53
--- /dev/null
@@ -0,0 +1,13 @@
+#! [contains] 1
+
+fun void func_1() { <<< "foo" >>>;}
+
+fun void func_2() { <<< "bar" >>>;}
+
+#define SET_FADER(i) \
+set_fader_##i();\
+<<< i >>>
+
+
+SET_FADER(1);
+SET_FADER(2);