By default, sysstat_panic function is no longer included in binary commands.
This function is defined only if --enable-debuginfo has been used with
configure.
Changes:
xxxx/xx/xx: Version 10.0.0 - Sebastien Godard (sysstat <at> orange.fr)
+ * sysstat_panic function is now defined only in DEBUG mode.
* NLS updated. Ukrainian translation added.
2010/12/26: Version 9.1.7 - Sebastien Godard (sysstat <at> orange.fr)
* @error_code Error code.
***************************************************************************
*/
+#ifdef DEBUG
void sysstat_panic(const char *function, int error_code)
{
fprintf(stderr, "sysstat: %s[%d]: Last chance handler...\n",
function, error_code);
exit(1);
}
+#endif
/*
***************************************************************************
#define MINIMUM(a,b) ((a) < (b) ? (a) : (b))
+#ifdef DEBUG
#define PANIC(m) sysstat_panic(__FUNCTION__, m)
-
+#else
+#define PANIC(m)
+#endif
/* Number of ticks per second */
#define HZ hz
print_gal_header(struct tm *, char *, char *, char *, char *, int);
extern void
print_version(void);
+#ifdef DEBUG
extern void
sysstat_panic(const char *, int);
+#endif
#endif /* _COMMON_H */