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 11:29:17 UTC

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

CV-Bowen commented on code in PR #6108:
URL: https://github.com/apache/incubator-nuttx/pull/6108#discussion_r854026156


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

Review Comment:
   As far as I know, the GCC and ICCARM define  `__STDC_VERSION__`, but i'm not sure the ZILOG and SDCC are the same. I will figure it out.



-- 
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