kasjer commented on PR #3060:
URL: https://github.com/apache/mynewt-core/pull/3060#issuecomment-1685764810

   Little context here.
   
   static_assert is C++ keyword
   _Static_assert is C keyword
   
   C standard specified that static_assert macro should expand to 
_Static_assert. That was the case in arm-none-eabi-gcc assert.h and same 
strategy was implemented in baselib.c
   
   Additionally NRFX_STATIC_ASSERT, when it was implemented in mynewt, chose to 
map to static_assert.
   Now it seems that C standard drops this static_assert definition. So we just 
change NRF static assert to C standard _Static_assert.
   
   For C++ we just specify _Static_assert if it's not already defined


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to