Function Macro

GLibassert_cmpfloat

since: 2.16

Declaration [src]

#define g_assert_cmpfloat (
  n1,
  cmp,
  n2
)

Description [src]

Debugging macro to compare two floating point numbers.

The effect of g_assert_cmpfloat (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: -

A floating point number.

cmp

Type: -

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

n2

Type: -

Another floating point number.