# include <stdio.h> # include <unistd.h> # define TRACE { \ if ( access("/huhu/debug.txt", F_OK) == 0 ) { \ FILE* fpQ= fopen("/huhu/debug.txt", "at") ; \ if ( fpQ != NULL ) { \ fprintf(fpQ, "DQ:%s();%d\n", __FUNCTION__, __LINE__) ; \ fclose(fpQ) ; \ } \ } \ }

merci d'avance

(ça compile partout sauf dans mon projet réel
