projects
/
gapil.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Sistemazione della bibliografia
[gapil.git]
/
sources
/
macros.h
diff --git
a/sources/macros.h
b/sources/macros.h
index 46862926eefd88e432b1c9ba39b74e4fd1cf71ec..a82bdfe3247db447c0df1d9bdbc6bea176bfb165 100644
(file)
--- a/
sources/macros.h
+++ b/
sources/macros.h
@@
-12,12
+12,17
@@
/*
* debugging print definition
*/
/*
* debugging print definition
*/
+#ifdef IS_DAEMON
+#define report(fmt, args...) UserNotify(fmt,##args)
+#else
#define report(fmt, args...) printf(fmt,##args)
#define report(fmt, args...) printf(fmt,##args)
+#endif /* IS_DAEMON */
+
#ifdef DEBUG /* done only on debugging */
#define debug report
#else
#define debug(fmt, arg...)
#ifdef DEBUG /* done only on debugging */
#define debug report
#else
#define debug(fmt, arg...)
-#endif
+#endif
/* DEBUG */
/*
/*