summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmJSONHelpers.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmJSONHelpers.h b/Source/cmJSONHelpers.h
index ef94c14..0bb32f4 100644
--- a/Source/cmJSONHelpers.h
+++ b/Source/cmJSONHelpers.h
@@ -34,9 +34,11 @@ enum ObjectError
ExtraField,
MissingRequired
};
+
using ErrorGenerator = std::function<void(const Json::Value*, cmJSONState*)>;
using ObjectErrorGenerator =
std::function<ErrorGenerator(ObjectError, const Json::Value::Members&)>;
+
ErrorGenerator EXPECTED_TYPE(const std::string& type);
void INVALID_STRING(const Json::Value* value, cmJSONState* state);