Nordic stack and drivers for the mbed BLE API

Dependents:   BLE_ANCS_SDAPI BLE_temperature BLE_HeartRate writable_gatt ... more

Using __LINE__ within STATIC_ASSERT to prevent name clashes

The current STATIC_ASSERT macro from app_util.h can't be used multiple times in the same file/class because each one would try to (re)define the symbol "static_assert_failed", causing name clashes (even on passed asserts.)

Using LINE (and some C++ preprocessor magic) we can make the names unique.

Fork for ELLA

1 comment:

04 Mar 2015

This is a good idea. It would be better to take this up with Nordic so that they can enhance their SDK. I'll forward this post to someone I know at Nordic; but you could try independently on their support forums.