/* Returns: -1, 0 or +1, for a less than, equal to or greater than result  */
gint g_param_values_cmp(GParamSpec *pspec, const GValue *value1, const GValue *value2)
/* Returns: -1, 0 or +1, for a less than, equal to or greater than result  */
gint g_param_values_cmp(GParamSpec *pspec, const GValue *value1, const GValue *value2)
{
  gint cmp;
  g_return_val_if_fail (G_IS_PARAM_SPEC (pspec), 0);
  g_return_val_if_fail (G_IS_VALUE (value1), 0);
  g_return_val_if_fail (G_IS_VALUE (value2), 0);
  g_return_val_if_fail (PSPEC_APPLIES_TO_VALUE (pspec, value1), 0);
  g_return_val_if_fail (PSPEC_APPLIES_TO_VALUE (pspec, value2), 0);
  cmp = G_PARAM_SPEC_GET_CLASS (pspec)->values_cmp (pspec, value1, value2);
  return CLAMP (cmp, -1, 1);
}