From 2f790accffc65ecc557757a0a39ec57d3a42cdc8 Mon Sep 17 00:00:00 2001 From: davemds Date: Sun, 29 Jan 2012 14:41:51 +0000 Subject: [PATCH] epp does not support variadic args git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@67588 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/examples/embryo_pong.edc | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/examples/embryo_pong.edc b/src/examples/embryo_pong.edc index 863b564..0e52ddb 100644 --- a/src/examples/embryo_pong.edc +++ b/src/examples/embryo_pong.edc @@ -9,14 +9,6 @@ #define BALL_SPEEDUP 0.1 #define BALL_SIZE 10 -#if DEBUG_ENABLE -#define DBG(...) { \ - new _buf[128]; \ - snprintf(_buf, sizeof(_buf), __VA_ARGS__); \ - set_text(PART:"dbg", _buf); } -#else -#define DBG(...) -#endif collections { group { name: "main"; @@ -148,8 +140,13 @@ collections { if (bx + BALL_SIZE > fw) player_wins(); /* show debug info (if debug enabled) */ - DBG("loop:%d [speed %f %f] [mouse: %d %d] [ball: %f %f]", - count, speedx, speedy, mx, my, bx, by) +#if DEBUG_ENABLE + new _buf[128]; + snprintf(_buf, sizeof(_buf), + "loop:%d [speed %f %f] [mouse: %d %d] [ball: %f %f]", + count, speedx, speedy, mx, my, bx, by); + set_text(PART:"dbg", _buf); +#endif /* recall the loop in n seconds */ timer(1.0 / FPS, "game_loop", count); -- 2.7.4