aboutsummaryrefslogtreecommitdiff
path: root/include/armnnOnnxParser/Version.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/armnnOnnxParser/Version.hpp')
-rw-r--r--include/armnnOnnxParser/Version.hpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/armnnOnnxParser/Version.hpp b/include/armnnOnnxParser/Version.hpp
new file mode 100644
index 0000000000..6c08c69f07
--- /dev/null
+++ b/include/armnnOnnxParser/Version.hpp
@@ -0,0 +1,29 @@
+//
+// Copyright © 2021 Arm Ltd and Contributors. All rights reserved.
+// SPDX-License-Identifier: MIT
+//
+
+#pragma once
+
+namespace armnnOnnxParser
+{
+
+/// Macro utils
+#define STRINGIFY_VALUE(s) STRINGIFY_MACRO(s)
+#define STRINGIFY_MACRO(s) #s
+
+// OnnxParser version components
+#define ONNX_PARSER_MAJOR_VERSION 23
+#define ONNX_PARSER_MINOR_VERSION 0
+#define ONNX_PARSER_PATCH_VERSION 0
+
+/// ONNX_PARSER_VERSION: "X.Y.Z"
+/// where:
+/// X = Major version number
+/// Y = Minor version number
+/// Z = Patch version number
+#define ONNX_PARSER_VERSION STRINGIFY_VALUE(ONNX_PARSER_MAJOR_VERSION) "." \
+ STRINGIFY_VALUE(ONNX_PARSER_MINOR_VERSION) "." \
+ STRINGIFY_VALUE(ONNX_PARSER_PATCH_VERSION)
+
+} //namespace armnnOnnxParser \ No newline at end of file