You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/04/20 06:06:20 UTC

[GitHub] [incubator-nuttx] pkarashchenko commented on a diff in pull request #6108: assert: static_assert is not support in c standard C89,C99

pkarashchenko commented on code in PR #6108:
URL: https://github.com/apache/incubator-nuttx/pull/6108#discussion_r853756118


##########
include/assert.h:
##########
@@ -77,7 +77,11 @@
  */
 
 #ifndef __cplusplus
-#  define static_assert _Static_assert
+#  if __STDC_VERSION__  > 199901L

Review Comment:
   probably this should be handled by `compiler.h`. I'm not sure if all compilers define `__STDC_VERSION__`. Need to double check.



-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org