Standard builtin/macros

John Love-Jensen eljay@adobe.com
Fri Mar 31 12:27:00 GMT 2006


Hi David,

No, there is no C Standard macro-magic that does that trick.  You'll have to
roll your own macro.

For C++, there is no macro-magic that does that trick either; you'd have to
roll your own macro there as well.  Without looking, I bet Boost (q.v.,
http://www.boost.org/) has some template-magic that does that trick.

On OS X, they have a <c.h> which does that trick.  And there's a wxWidgets
<wx-2.5/wx/defs.h> that does that trick (q.v. http://www.wxwidgets.org/).

--Eljay



More information about the Gcc-help mailing list