diff options
| author | Tristan Riehs <tristan.riehs@inria.fr> | 2026-07-05 18:30:38 +0200 |
|---|---|---|
| committer | Tristan Riehs <tristan.riehs@inria.fr> | 2026-07-05 18:30:38 +0200 |
| commit | 430bca8a0f166df268e2fa8fb207286640bd0602 (patch) | |
| tree | 8ebad4affc699ff53d8061f332e13299c315ddba /src/system.h | |
| parent | cc96dd40bc1710cd20cc64f2f36622a1f01f174a (diff) | |
Add a sys_check routine
Diffstat (limited to 'src/system.h')
| -rw-r--r-- | src/system.h | 4 |
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 { |
