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 2020/06/04 13:59:53 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a change in pull request #1193: nuttx compiler.h: Add location directive

xiaoxiang781216 commented on a change in pull request #1193:
URL: https://github.com/apache/incubator-nuttx/pull/1193#discussion_r435280078



##########
File path: include/nuttx/compiler.h
##########
@@ -107,6 +107,10 @@
 
 #  define aligned_data(n) __attribute__ ((aligned(n)))
 
+/* Data location */
+
+#  define locate_data(n) __attribute__ ((section(n)))

Review comment:
       Since __attribute__ ((section(n))) can also apply to function, could we give a more general name here?




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

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