GLib.assert_cmpint
Description: Reference for GLib.assert_cmpint

### Function Macro

# GLibassert_cmpint

since: 2.16

#### Declaration [src]

    #define g_assert_cmpint (
      n1,
      cmp,
      n2
    )

#### Description [src]

Debugging macro to compare two integers.

The effect of `g_assert_cmpint (n1, op, n2)` is the same as `g_assert_true (n1 op n2)`. The advantage of this macro is that it can produce a message that includes the actual values of `n1` and `n2`.

Available since: 2.16

This function is not directly available to language bindings.

#### Parameters

`n1`

  Type: `-`

  An integer.

`cmp`

  Type: `-`

  The comparison operator to use. One of `==`, `!=`, `<`, `>`, `<=`, `>=`.

`n2`

  Type: `-`

  Another integer.