From e3d16c3798aea007efaf6e956390d1e6b5da5774 Mon Sep 17 00:00:00 2001 From: neingeist Date: Sun, 4 Apr 2010 17:37:39 +0200 Subject: [PATCH] comment macro, remove semicolon --- projekte/protothreads/example.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projekte/protothreads/example.c b/projekte/protothreads/example.c index 82844a4..366d407 100644 --- a/projekte/protothreads/example.c +++ b/projekte/protothreads/example.c @@ -7,12 +7,12 @@ #include "timer/clock.h" #include "timer/timer.h" -/* TIMER_DELAY macro for convenience */ +/* TIMER_DELAY macro for convenience, do { } while(0) is just a macro trick */ #define TIMER_DELAY(pt, timer, t) \ do { \ timer_set(&timer, t); \ PT_WAIT_UNTIL(pt, timer_expired(&timer)); \ - } while(0); + } while(0) /* Two timers for the two protothreads. */ static struct timer timer1, timer2;