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/04/24 12:20:45 UTC

[GitHub] [incubator-nuttx] patacongo commented on issue #858: Would a PR to switch to '#pragma once' be accepted?

patacongo commented on issue #858:
URL: https://github.com/apache/incubator-nuttx/issues/858#issuecomment-618976315


   No compiler dependencies are permitted directly anywhere in .c or .h files.  #pragma may not be used there.
   
   Compiler dependencies may be "indirectly" used if they are added to included/nuttx/compiler.h and a comon definition is provided for all tools.  But even that use is discouraged.  The OS should not, in general, depend on any property of any toolchain.
   
   So, please, do not consider adding #pragma to any source files.


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