sca-c-cpp message
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
| [List Home]
Subject: Restriction regarding macros
- From: Bryan Aupperle <aupperle@us.ibm.com>
- To: sca-c-cpp@lists.oasis-open.org
- Date: Wed, 17 Jun 2009 08:35:19 -0400
Section 9 of the C++ spec (and the C
spec as well for that matter) states that a header file used to define
an interface must not use macros. This restriction dates back to
the OSOA days so I am trying to get a bit of history on it. Is the
intent to prohibit any use of #define in a header file (that is the implication
of the current wording) or something less restrictive? Some specific
considerations:
Header guards (should be allowed)
Manifest constants (probably safe, but
use limited to multidimensional arrays - anything else?)
Linkage switches - extern or not, etc.
(again probably safe and do not impact mapping to/from WSDL)
Macro functions (these need to be kept
out of interfaces)
What do folks think?
Thanks
Bryan Aupperle, Ph.D.
STSM, WebSphere Enterprise Platform Software Solution Architect
Research Triangle Park, NC
+1 919-254-7508 (T/L 444-7508)
Internet Address: aupperle@us.ibm.com
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
| [List Home]