summaryrefslogtreecommitdiff
path: root/Examples/test-suite/lua_inherit_getitem.i
blob: 82c055dd1e2a605204aaa9e5c5a0c474389f6847 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
%module lua_inherit_getitem

%inline %{

class CBase {
public:
  const char* Foo(void) {
    return "CBase::Foo";
  }
};

class CDerived : public CBase {
public:
  void *__getitem(const char *name) const {
    return NULL;
  }
};

%}