2 * =====================================================================================
9 * Created: 09/03/2017 15:28:46
13 * Author: Jerome Benoit (fraggle), jerome.benoit@piment-noir.org
14 * Organization: Piment Noir
16 * =====================================================================================
22 /* definition to expand macro then apply to pragma message */
23 #define VALUE_TO_STRING(x) #x
24 #define VALUE(x) VALUE_TO_STRING(x)
25 #define VAR_NAME_VALUE(var) #var "=" VALUE(var)
27 #define ARRAY_SIZE(arr) ({typeof (arr) arr ## _is_a_pointer __attribute__((unused)) = {}; \
28 sizeof(arr) / sizeof(arr[0]);})