c++11: step 2
[jackhill/mal.git] / cpp / Validation.h
index d419655..9845ff0 100644 (file)
@@ -6,4 +6,9 @@
 #define ASSERT(condition, ...)  \
     if (!(condition)) { throw STRF(__VA_ARGS__); } else { }
 
+extern int checkArgsIs(const char* name, int expected, int got);
+extern int checkArgsBetween(const char* name, int min, int max, int got);
+extern int checkArgsAtLeast(const char* name, int min, int got);
+extern int checkArgsEven(const char* name, int got);
+
 #endif // INCLUDE_VALIDATION_H