Function Macro

GLibUNLIKELY

Declaration

#define G_UNLIKELY (
  expr
)

Description

Hints the compiler that the expression is unlikely to evaluate to a true value. The compiler may use this information for optimizations.

if (G_UNLIKELY (random () == 1))
  g_print ("a random one");
Available since:2.2
This function is not directly available to language bindings

Parameters

expr -
 

The expression.