Commit f06ddca8 authored by Christian Sponfeldner's avatar Christian Sponfeldner

refactoring: Prettify error messages

parent 1a5c5a95
......@@ -14,13 +14,13 @@
////////////////////// CHECK CONFIGURATION - Don't touch //////////////////////////////////////////
//-----------------------------CHECK DRIVE CONFIG-----------------------------//
#if !defined(DEF_4WD) && !defined(DEF_2WD) && !defined(DEF_2WD_PLUS_AUX)
#error "None of DEF_2WD, DEF_2WD_PLUS_AUX or DEF_4WD are not defined. Please choose one!"
#error "Impossible configuration: None of DEF_2WD, DEF_2WD_PLUS_AUX or DEF_4WD are not defined. Please choose one!"
#endif
#if !(defined(DEF_4WD) != defined(DEF_2WD) != defined(DEF_2WD_PLUS_AUX))
#error "More then one of DEF_2WD, DEF_2WD_PLUS_AUX or DEF_4WD are defined. Please choose one only!"
#if !(defined(DEF_4WD) != defined(DEF_2WD) != defined(DEF_2WD_PLUS_AUX)) && (defined(DEF_4WD) || defined(DEF_2WD) || defined(DEF_2WD_PLUS_AUX))
#error "Impossible configuration: More then one of DEF_2WD, DEF_2WD_PLUS_AUX or DEF_4WD are defined. Please choose one only!"
#endif
#if defined(DEF_4WD) && defined(DEF_2WD) && defined(DEF_2WD_PLUS_AUX)
#error "All of DEF_2WD, DEF_2WD_PLUS_AUX and DEF_4WD are defined. Please choose one only!"
#error "Impossible configuration: All of DEF_2WD, DEF_2WD_PLUS_AUX and DEF_4WD are defined. Please choose one only!"
#endif
////////////////////// DEPENDENT DEFINITIONS - Don't touch //////////////////////////////////////////
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment