Function Macro

GLibN_ELEMENTS

since: 2.0

Declaration

#define G_N_ELEMENTS (
  arr
)

Description

Determines the number of elements in an array. The array must be declared so the compiler knows its size at compile-time; this macro will not work on an array allocated on the heap, only static arrays or arrays on the stack.

Available since: 2.0

This function is not directly available to language bindings.

Parameters

arr

Type: -

The array.