diff options
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; |