git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-maciekd@10604 626c5289-ae23-0410-ae9c-e8d60b6d4f22
16 lines
250 B
C++
16 lines
250 B
C++
#include <stdio.h>
|
|
|
|
class Bar {
|
|
private:
|
|
int x;
|
|
public:
|
|
Bar() : x(0) {}
|
|
~Bar() {}
|
|
void set(int x) { this->x = x; }
|
|
int get() { return x; }
|
|
};
|
|
|
|
void foo_by_val(Bar bar);
|
|
void foo_by_ref(Bar& bar);
|
|
void foo_by_ptr(Bar* bar);
|
|
|