Tools and libraries to glue C/C++ APIs to high-level languages
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

47 lines
450 B

#include "CSharpTemp.h"
Foo::Foo()
{
A = 10;
P = 50;
}
int Foo::method()
{
return 1;
}
int Foo::operator[](int i) const
{
return 5;
}
int Foo::operator[](unsigned int i)
{
return 15;
}
int& Foo::operator[](int i)
{
return P;
}
const Foo& Bar::operator[](int i) const
{
return m_foo;
}
int Qux::farAwayFunc()
{
return 20;
}
int Bar::method()
{
return 2;
}
Foo& Bar::operator[](int i)
{
return m_foo;
}