Mercurial > hg > freeDiameter
diff include/freeDiameter/libfreeDiameter.h @ 13:ef9ef3bf4752
Progress on peer state machine
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Wed, 30 Sep 2009 18:25:46 +0900 |
parents | c5c99c73c2bf |
children | 14cf6daf716d |
line wrap: on
line diff
--- a/include/freeDiameter/libfreeDiameter.h Mon Sep 28 17:29:25 2009 +0900 +++ b/include/freeDiameter/libfreeDiameter.h Wed Sep 30 18:25:46 2009 +0900 @@ -189,6 +189,15 @@ #define TRACE_DEBUG_ALL( str ) \ TRACE_DEBUG(CALL, str ); +/* For development only, to keep track of TODO locations in the code */ +#ifndef ERRORS_ON_TODO +#define TODO( _msg, _args... ) \ + TRACE_DEBUG(NONE, _msg , ##_args); +#else /* ERRORS_ON_TODO */ +#define TODO( _msg, _args... ) \ + "TODO" = _msg ## _args; /* just a stupid compilation error to spot the todo */ +#endif /* ERRORS_ON_TODO */ + /* Macros to check a return value and branch out in case of error. * These macro must be used only when errors are highly improbable, not for expected errors.