From: Jérémie Astor Date: Thu, 5 Aug 2021 13:15:41 +0000 (+0200) Subject: :bug: Fix multiline macros X-Git-Tag: nightly~488 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=a0225778c48f5f907a510a8e5d6d5fb8977c6882;p=gwion.git :bug: Fix multiline macros --- diff --git a/ast b/ast index ba2a75d2..1f0dc4b7 160000 --- 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 index 00000000..4e43a536 --- /dev/null +++ b/tests/pp/multiline_macro.gw @@ -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);