diff options
author | David Robillard <d@drobilla.net> | 2024-11-22 20:09:18 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-11-24 20:42:51 -0500 |
commit | 7a03d6bacbec2ac275673314c8a274d5208943b3 (patch) | |
tree | d7738ec954f91aec3441199a3f6ed992c608fdc3 /src/frontend.h | |
parent | d32dce07f6f0848160b3abbc3fe34828f650c338 (diff) | |
download | jalv-7a03d6bacbec2ac275673314c8a274d5208943b3.tar.gz jalv-7a03d6bacbec2ac275673314c8a274d5208943b3.tar.bz2 jalv-7a03d6bacbec2ac275673314c8a274d5208943b3.zip |
Make help and version commands exit successfully
Diffstat (limited to 'src/frontend.h')
-rw-r--r-- | src/frontend.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/frontend.h b/src/frontend.h index c798ea8..f18fb86 100644 --- a/src/frontend.h +++ b/src/frontend.h @@ -15,6 +15,9 @@ // Interface that must be implemented by UIs JALV_BEGIN_DECLS +/// Arbitrary return code for successful early exit (for --help and so on) +#define JALV_EARLY_EXIT_STATUS (-431) + /// Command-line arguments passed to an executable typedef struct { int* argc; ///< Pointer to `argc` like in `main` |