aboutsummaryrefslogtreecommitdiff
path: root/src/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/system.h')
-rw-r--r--src/system.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/system.h b/src/system.h
index 950a82a..1045153 100644
--- a/src/system.h
+++ b/src/system.h
@@ -4,6 +4,10 @@
/* Routines for interacting with the system, mainly executing processes and
* dealing with the file system. */
+void __sys_check(int cond, const char *prefix, const char *file, int line);
+
+#define sys_check(COND, PREFIX) __sys_check(COND, PREFIX, __FILE__, __LINE__)
+
/* Used when encrypting or decrypting a file, see the copy_file_with_encryption
* function. */
enum encrypt {