views:

8

answers:

0

I have many .h file which contains many inline functions. And they configured for conditional compilation. In fact, this is a math library have reference and optimized codes.

I'm putting some comments on here. There is a function prototype, and 2 implementations. Is this possible?

void func1();

/*!
 Basic description
 */
void func1()
{
  //...Reference implementation.
}

/*!
 Additional description.
 @discussion
 Some description for optimized configuration.
 */
void func1()
{
  //...Optimized implementation
}

Above functions are configured to be compiled conditionally with #ifdef and several flags.