PageRenderTime 15ms CodeModel.GetById 12ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 1ms

/trunk/Examples/test-suite/overload_subtype.i

#
Swig | 17 lines | 11 code | 6 blank | 0 comment | 0 complexity | 5e7e678a0f0213385a1ff6a0fd5a1756 MD5 | raw file
 1%module overload_subtype
 2
 3%inline %{
 4
 5class Foo {};
 6class Bar : public Foo {};
 7
 8
 9int  spam(Foo *f) {
10    return 1;
11}
12
13int spam(Bar *b) {
14    return 2;
15}
16
17%}