summaryrefslogtreecommitdiff
path: root/src/glibext
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2023-07-07 06:32:43 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2023-07-07 06:32:43 (GMT)
commit4c10dfa2a95cea6fc704d68066d0c284cfd79342 (patch)
tree5827bbc411459800747e21929daecdf99fde7dfd /src/glibext
parent3f996be1e5858b54740bf92515795982a16b169a (diff)
Rewrite core parts of the ROST API.
Diffstat (limited to 'src/glibext')
-rw-r--r--src/glibext/comparison.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/glibext/comparison.h b/src/glibext/comparison.h
index 26e501c..8d43210 100644
--- a/src/glibext/comparison.h
+++ b/src/glibext/comparison.h
@@ -57,6 +57,17 @@ typedef enum _RichCmpOperation
} RichCmpOperation;
+/* Détermination d'un besoin de comparaison supplémentaire */
+#define STATUS_NOT_EQUAL(_s, _o) \
+ ({ \
+ bool __result; \
+ if (_o == RCO_LE || _o == RCO_EQ || _o == RCO_GE) \
+ __result = !_s; \
+ else \
+ __result = _s; \
+ __result; \
+ })
+
/* Détermine le type d'une interface pour un objet comparable. */
GType g_comparable_item_get_type(void) G_GNUC_CONST;