From 7a03d6bacbec2ac275673314c8a274d5208943b3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 22 Nov 2024 20:09:18 -0500 Subject: Make help and version commands exit successfully --- src/frontend.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/frontend.h') 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` -- cgit v1.2.1