joel.sherrill at OARcorp.com
Sat Dec 10 14:26:13 UTC 2011
Inline methods have the same problem as macros for non-C languages. They are not available.
But the macro could wrap a static inline with _body appended and the the C file with the real body could undef the macro. It may have to prototype itself in the file.
I don't think you can have a prototype for something defined as a macro as cpp will text substitute and render the code junk.
Gedare Bloom <gedare at rtems.org> wrote:
>On Thu, Dec 8, 2011 at 11:01 PM, Ralf Corsepius
><ralf.corsepius at rtems.org> wrote:
>> On 12/08/2011 10:24 PM, Chris Johns wrote:
>>> On 9/12/11 4:25 AM, Ralf Corsepius wrote:
>>>> - Eliminate the #defines and supply C-body functions only?
>>> This would effect performance.
>> Well, I'd expect this claim to apply to some of these functions, but not to
>Maybe I'm missing something, but would turning these macros into
>inline functions do the trick?
>rtems-devel mailing list
>rtems-devel at rtems.org
More information about the devel