PageRenderTime 3ms CodeModel.GetById 1ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/ruby/overloading/example.i

#
Swig | 24 lines | 11 code | 6 blank | 7 comment | 0 complexity | 1dfe4fda6fade0c6b5db68a3ce6f3894 MD5 | raw file
 1%module example
 2
 3%{
 4#include "example.h"
 5%}
 6
 7/**
 8 * These overloaded declarations conflict with other overloads (as far as
 9 * SWIG's Ruby module's implementation for overloaded methods is concerned).
10 * One option is use the %rename directive to rename the conflicting methods;
11 * here, we're just using %ignore to avoid wrapping some of the overloaded
12 * functions altogether.
13 */
14
15%ignore Bar::Bar(Bar *);
16%ignore Bar::Bar(long);
17
18%ignore Bar::foo(const Bar&);
19%ignore Bar::foo(long);
20
21%ignore ::foo(const Bar&);
22%ignore ::foo(int);
23
24%include example.h