Function Macro

GLibuint_checked_add

Declaration

#define g_uint_checked_add (
  dest,
  a,
  b
)

Description

Performs a checked addition of a and b, storing the result in dest.

If the operation is successful, TRUE is returned. If the operation overflows then the state of dest is undefined and FALSE is returned.

Available since:2.48

Parameters

dest none
 

A pointer to the #guint destination.

a none
 

The #guint left operand.

b none
 

The #guint right operand.