summaryrefslogtreecommitdiff
path: root/diag.h
diff options
context:
space:
mode:
Diffstat (limited to 'diag.h')
-rw-r--r--diag.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/diag.h b/diag.h
index 8abac6f..be152b1 100644
--- a/diag.h
+++ b/diag.h
@@ -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.
*/