aboutsummaryrefslogtreecommitdiffhomepage
path: root/midimonster.h
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2019-12-03 22:37:45 +0100
committercbdev <cb@cbcdn.com>2019-12-03 22:37:45 +0100
commita0831a2b970404eaa9b80ff97ab46ee759131414 (patch)
tree72cff7c1b10b25a4ad2dcc803b06d35a562ccc1d /midimonster.h
parent30feadde5b18f49fd853f8ce61d85168db912bb6 (diff)
downloadmidimonster-a0831a2b970404eaa9b80ff97ab46ee759131414.tar.gz
midimonster-a0831a2b970404eaa9b80ff97ab46ee759131414.tar.bz2
midimonster-a0831a2b970404eaa9b80ff97ab46ee759131414.zip
Add error checking for shell callouts during build
Diffstat (limited to 'midimonster.h')
-rw-r--r--midimonster.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/midimonster.h b/midimonster.h
index b05326c..3922b03 100644
--- a/midimonster.h
+++ b/midimonster.h
@@ -29,6 +29,11 @@
#define DBG(message)
#endif
+/* Stop compilation if the build system reports an error */
+#ifdef BUILD_ERROR
+ #error The build system reported an error, compilation stopped. Refer to the invocation for this compilation unit for more information.
+#endif
+
/* Pull in additional defines for non-linux platforms */
#include "portability.h"