This allows to replace non-standard Doxygen commands with some (fixed) text instead of just ignoring them, as was already possible with the feature doxygen:ignore.
22 lines
375 B
OpenEdge ABL
22 lines
375 B
OpenEdge ABL
%module doxygen_alias
|
|
|
|
#ifdef SWIGJAVA
|
|
%feature("doxygen:alias:nullptr") "null"
|
|
#elif defined(SWIGPYTHON)
|
|
%feature("doxygen:alias:nullptr") "None"
|
|
#else
|
|
%feature("doxygen:alias:nullptr") "NULL"
|
|
#endif
|
|
|
|
%inline %{
|
|
|
|
class Something {};
|
|
|
|
/**
|
|
A function returning something.
|
|
|
|
@returns A new object which may be @nullptr.
|
|
*/
|
|
Something* make_something() { return 0; }
|
|
|
|
%}
|