swig/Examples/test-suite/doxygen_basic_translate.i

96 lines
1.3 KiB
OpenEdge ABL

%module doxygen_basic_translate
%include "doxygen_basic_translate.h"
%inline %{
/**
* \brief
* Brief description.
*
* The comment text
* \author Some author
* \return Some number
* \sa function2
*/
int function()
{
}
/**
* A test of a very very very very very very very very very very very very very very very very
* very very very very very long comment string.
*/
int function2()
{
}
/**
* A test for overloaded functions
* This is function \b one
*/
int function3(int a)
{
}
/**
* A test for overloaded functions
* This is function \b two
*/
int function3(int a, int b)
{
}
/**
* A test of some mixed tag usage
* \if CONDITION
* This \a code fragment shows us something \.
* \par Minuses:
* \arg it's senseless
* \arg it's stupid
* \arg it's null
*
* \warning This may not work as expected
*
* \code
* int main() { while(true); }
* \endcode
* \endif
*/
int function4()
{
}
int function5(int a)
{
}
/**< This is a post comment. */
/**
* Test for default args
* @param a Some parameter, default is 42
*/
int function6(int a=42)
{
}
class Shape
{
public:
typedef Shape* superType;
};
/**
* Test for a parameter with difficult type
* (mostly for python)
* @param a Very strange param
*/
void function7(Shape::superType *a[10])
{
}
/**
* Comment at the end of file should be ignored.
*/
%}