2 * Base common includes to all RPP library.
6 * @copyright Copyright (C) 2013, 2015 Czech Technical University in Prague
8 * @author Carlos Jenkins <carlos@jenkins.co.cr>
20 // General IO directives
22 * Maximum length of system buffers.
24 #define MAX_BUFFER_LEN 1024
29 * Macro to mark unused variables.
31 #define UNUSED(x) (void)(x)
34 * General debug directive.
36 //#define DEBUG // - defined in preprocessor's Predefined symbols
40 * Macro to mark debug statements.
47 /** Calculates the number of elements in an array */
48 #define ARRAY_SIZE(x) (sizeof(x)/sizeof(*(x)))
50 #if defined(static_assert)
51 /** Static assertion as available in C11 standard */
52 #define STATIC_ASSERT(COND,MSG) static_assert(COND, #MSG)
54 /** Static assertion - non-C11 fall-back */
55 #define STATIC_ASSERT(COND,MSG) typedef char static_assertion_##MSG[(COND)?1:-1]