Diffstat (limited to 'diag.h')
1 files changed, 22 insertions, 0 deletions
@@ -24,6 +24,28 @@ extern unsigned verbose;
+ * Terminate immediately. Further execution makes no sense.
+ * E.g., out of memory.
+void __attribute__((noreturn)) fatal(const char *fmt, ...);
+ * Operation has failed, but the program as a whole may still be able to
+ * continue. E.g., a schematics component was not found.
+void error(const char *fmt, ...);
+ * A minor operation has failed or some other issue was detected. This may
+ * be (or lead to) a more serious problem, but does not immediately affect
+ * operation.
+void warning(const char *fmt, ...);
* Progress message, used mainly for debugging. "level" is the minimum
* verbosity level required.