Eliminate trivial differences between the reference examples
This commit is contained in:
parent
37cd1474b5
commit
ac1f067ce9
18 changed files with 15 additions and 79 deletions
|
|
@ -1,10 +1,6 @@
|
|||
/* File : example.i */
|
||||
|
||||
/* This example has nothing to do with references but the name is used by all
|
||||
* the other languages so it's hard to rename to something more meaningful.
|
||||
*
|
||||
* Mostly it shows how to use %extend.
|
||||
*/
|
||||
/* This file has a few "typical" uses of C++ references. */
|
||||
|
||||
%module example
|
||||
|
||||
|
|
@ -33,8 +29,8 @@ public:
|
|||
VectorArray(int maxsize);
|
||||
~VectorArray();
|
||||
int size();
|
||||
|
||||
/* This wrapper provides an alternative to the [] operator */
|
||||
|
||||
/* This wrapper provides an alternative to the [] operator */
|
||||
%extend {
|
||||
Vector &get(int index) {
|
||||
printf("VectorArray extended get: %p %d\n", (void *)$self, index);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue