Browse Source

Squish sanity check for build info

Scott Lahteine 8 years ago
parent
commit
dbfc87cdcf
1 changed files with 15 additions and 29 deletions
  1. 15
    29
      Marlin/SanityCheck.h

+ 15
- 29
Marlin/SanityCheck.h View File

@@ -56,35 +56,21 @@
56 56
  * Marlin release, version and default string
57 57
  */
58 58
 #ifndef SHORT_BUILD_VERSION
59
-  #error "SHORT_BUILD_VERSION Information must be specified"
60
-#endif
61
-
62
-#ifndef DETAILED_BUILD_VERSION
63
-  #error "BUILD_VERSION Information must be specified"
64
-#endif
65
-
66
-#ifndef STRING_DISTRIBUTION_DATE
67
-  #error "STRING_DISTRIBUTION_DATE Information must be specified"
68
-#endif
69
-
70
-#ifndef PROTOCOL_VERSION
71
-  #error "PROTOCOL_VERSION Information must be specified"
72
-#endif
73
-
74
-#ifndef MACHINE_NAME
75
-  #error "MACHINE_NAME Information must be specified"
76
-#endif
77
-
78
-#ifndef SOURCE_CODE_URL
79
-  #error "SOURCE_CODE_URL Information must be specified"
80
-#endif
81
-
82
-#ifndef DEFAULT_MACHINE_UUID
83
-  #error "DEFAULT_MACHINE_UUID Information must be specified"
84
-#endif
85
-
86
-#ifndef WEBSITE_URL
87
-  #error "WEBSITE_URL Information must be specified"
59
+  #error "SHORT_BUILD_VERSION must be specified."
60
+#elif !defined(DETAILED_BUILD_VERSION)
61
+  #error "BUILD_VERSION must be specified."
62
+#elif !defined(STRING_DISTRIBUTION_DATE)
63
+  #error "STRING_DISTRIBUTION_DATE must be specified."
64
+#elif !defined(PROTOCOL_VERSION)
65
+  #error "PROTOCOL_VERSION must be specified."
66
+#elif !defined(MACHINE_NAME)
67
+  #error "MACHINE_NAME must be specified."
68
+#elif !defined(SOURCE_CODE_URL)
69
+  #error "SOURCE_CODE_URL must be specified."
70
+#elif !defined(DEFAULT_MACHINE_UUID)
71
+  #error "DEFAULT_MACHINE_UUID must be specified."
72
+#elif !defined(WEBSITE_URL)
73
+  #error "WEBSITE_URL must be specified."
88 74
 #endif
89 75
 
90 76
 /**

Loading…
Cancel
Save