From 87dda5fed6c77f15893c9fe6f1f6761284e23172 Mon Sep 17 00:00:00 2001 From: "fabio.olimpieri" Date: Fri, 16 May 2014 13:33:30 +0000 Subject: [PATCH] Added DEBUG management --- src/currah_microspeech.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/currah_microspeech.c b/src/currah_microspeech.c index f1f577b..6b5df11 100644 --- a/src/currah_microspeech.c +++ b/src/currah_microspeech.c @@ -22,6 +22,15 @@ #include "computer.h" #include "emulator.h" +#ifdef DEBUG +extern FILE *fdebug; +#define printf(...) fprintf(fdebug,__VA_ARGS__) +#else + #ifdef GEKKO + #define printf(...) + #endif +#endif + int allophone_lenght[ALLOPHONES]; signed char *allophone_buffer[ALLOPHONES];