From db94af675ccfb34885000e3d97947557cebb66f3 Mon Sep 17 00:00:00 2001 From: olpc user Date: Fri, 20 Dec 2019 09:01:21 -0800 Subject: habit macros can use default arguments now --- starts/meaning-vm/habit-starts/rhythm.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'starts/meaning-vm/habit-starts') diff --git a/starts/meaning-vm/habit-starts/rhythm.cpp b/starts/meaning-vm/habit-starts/rhythm.cpp index c476006..72626d6 100644 --- a/starts/meaning-vm/habit-starts/rhythm.cpp +++ b/starts/meaning-vm/habit-starts/rhythm.cpp @@ -52,12 +52,12 @@ int main() } }); - ahabit(start-beat, (), + ahabit(start-beat, ((wait-habit, w, wait-habit), (beat-habit, b, beat-habit)), { ctx.vset(beat, int(0)); - self.set(next, wait-habit); - (beat-habit).set(next, wait-habit); - (wait-habit).set(next, beat-habit); + self.set(next, w); + (b).set(next, w); + (w).set(next, b); }); ahabit(beat-habit, (), { -- cgit v1.2.3