Libtropic API
SDK for the TROPIC01 secure element
Version: master (latest)
Loading...
Searching...
No Matches
libtropic_macros.h File Reference

Various helper macros. More...

This graph shows which files directly or indirectly include this file:

Macros

#define LT_STATIC_ASSERT(x)
 Wrapper for static assertion.
 
#define LT_MEMBER_SIZE(type, member)   (sizeof(((type *)0)->member))
 Get struct member size at compile-time.
 
#define LT_UNUSED(x)   (void)(x)
 Mark variable as unused to sanitize compiler warnings.
 
#define lt_max(a, b)
 Get max value.
 
#define lt_min(a, b)
 Get min value.
 
#define LT_COMPTIME_MAX(a, b)   __builtin_choose_expr((a) > (b), a, b)
 Get max value from compile-time constants at compile-time.
 

Detailed Description

License
For the license see file LICENSE.md file in the root directory of this source tree.