summaryrefslogtreecommitdiff
path: root/Examples/javascript/overload/example.i
blob: b86689f8ac4b690056364fa9d084824819c56ce8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* File : example.i */
%module example

%{
#include "example.h"
%}

/*
  Note: overloading is implemented in a sloppy way currently
        i.e., only the number of arguments is taken into conideration
        for dispatching.
        To solve the problem one has to rename such conflicting methods.
*/
%rename(f_double) f(double val);

%include "example.h"