diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2023-07-07 06:32:43 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2023-07-07 06:32:43 (GMT) |
commit | 4c10dfa2a95cea6fc704d68066d0c284cfd79342 (patch) | |
tree | 5827bbc411459800747e21929daecdf99fde7dfd /src/glibext | |
parent | 3f996be1e5858b54740bf92515795982a16b169a (diff) |
Rewrite core parts of the ROST API.
Diffstat (limited to 'src/glibext')
-rw-r--r-- | src/glibext/comparison.h | 11 |
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; |