aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/doxygen_alias.i
blob: 79cb7964b950d79fa4f6e1e28e30c57972db70f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
%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; }

%}