[prev in list] [next in list] [prev in thread] [next in thread] 

List:       doxygen-users
Subject:    [Doxygen-users] Copydetails in 1.8.1 and 1.8.3
From:       Brad Bell <bradbell () seanet ! com>
Date:       2013-07-28 21:07:51
Message-ID: 51F58827.5050008 () seanet ! com
[Download RAW message or body]

There seems to be a change to the API for copydetails between doxygen 
1.8.1 and 1.8.3. For version 1.8.1, the following program documents the 
argument os to the routine div while it does not for 1.8.3.

/*!
\file details.cpp
Test of doxygen
*/
# include <iostream>
# include <cstdlib>

/*!
Add two integers

\param left
left operand.

\param right
right operand.
*/
int add(int left, int right)
{    return left + right; }

/*!
Divide two integers

\copydetails add

\param os
output stream if an error occurs.
*/
int div(int left, int right, std::ostream& os)
{    if( right == 0 )
     {    os << "div: right operand is zero" << std::endl;
         std::exit(0);
     }
     return left / right;
}

/// main program
int main(void)
{    int x = add(1, 2);
     std::cout << "x = " << x << std::endl;
     int y = div(1, 0, std::cerr);
     std::cout << "y = " << y << std::endl;
     return 0;
}


------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Doxygen-users mailing list
Doxygen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/doxygen-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic