[d-spy] lib: add 1.2 version macros



commit 5ead6ecde061ebb3dd3a2b970d8fd57285b86646
Author: Christian Hergert <chergert redhat com>
Date:   Fri Mar 18 16:31:01 2022 -0700

    lib: add 1.2 version macros

 lib/dspy-version-macros.h | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
---
diff --git a/lib/dspy-version-macros.h b/lib/dspy-version-macros.h
index 76d229a..3d61666 100644
--- a/lib/dspy-version-macros.h
+++ b/lib/dspy-version-macros.h
@@ -39,6 +39,7 @@
 #endif
 
 #define DSPY_VERSION_1_0 (G_ENCODE_VERSION (1, 0))
+#define DSPY_VERSION_1_2 (G_ENCODE_VERSION (1, 2))
 
 #if (DSPY_MINOR_VERSION == 99)
 # define DSPY_VERSION_CUR_STABLE (G_ENCODE_VERSION (DSPY_MAJOR_VERSION + 1, 0))
@@ -107,6 +108,7 @@
 
 #define DSPY_AVAILABLE_IN_ALL                  _DSPY_EXTERN
 
+/* 1.0 */
 #if DSPY_VERSION_MIN_REQUIRED >= DSPY_VERSION_1_0
 # define DSPY_DEPRECATED_IN_1_0                DSPY_DEPRECATED
 # define DSPY_DEPRECATED_IN_1_0_FOR(f)         DSPY_DEPRECATED_FOR(f)
@@ -120,3 +122,18 @@
 #else
 # define DSPY_AVAILABLE_IN_1_0                 _DSPY_EXTERN
 #endif
+
+/* 1.2 */
+#if DSPY_VERSION_MIN_REQUIRED >= DSPY_VERSION_1_0
+# define DSPY_DEPRECATED_IN_1_2                DSPY_DEPRECATED
+# define DSPY_DEPRECATED_IN_1_2_FOR(f)         DSPY_DEPRECATED_FOR(f)
+#else
+# define DSPY_DEPRECATED_IN_1_2                _DSPY_EXTERN
+# define DSPY_DEPRECATED_IN_1_2_FOR(f)         _DSPY_EXTERN
+#endif
+
+#if DSPY_VERSION_MAX_ALLOWED < DSPY_VERSION_1_2
+# define DSPY_AVAILABLE_IN_1_2                 DSPY_UNAVAILABLE(1, 2)
+#else
+# define DSPY_AVAILABLE_IN_1_2                 _DSPY_EXTERN
+#endif


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]