From a0225778c48f5f907a510a8e5d6d5fb8977c6882 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Thu, 5 Aug 2021 15:15:41 +0200 Subject: [PATCH] :bug: Fix multiline macros --- ast | 2 +- tests/pp/multiline_macro.gw | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 tests/pp/multiline_macro.gw 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); -- 2.43.0