logging: Add compile time error on 64 bit platforms

Logger is designed with assumption that address fit in 32 bits.
Added explicit compilation error on 64 bit platforms.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
Krzysztof Chruscinski 2018-11-05 15:20:03 +01:00 committed by Carles Cufí
commit c036d2f4dd

View file

@ -15,6 +15,10 @@
extern "C" { extern "C" {
#endif #endif
#if UINTPTR_MAX == 0xFFFFFFFFFFFFFFFFUL
#error "Logger does not support 64 bit architecture."
#endif
#if !CONFIG_LOG #if !CONFIG_LOG
#define CONFIG_LOG_DEFAULT_LEVEL 0 #define CONFIG_LOG_DEFAULT_LEVEL 0
#define CONFIG_LOG_DOMAIN_ID 0 #define CONFIG_LOG_DOMAIN_ID 0