git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-maciekd@10618 626c5289-ae23-0410-ae9c-e8d60b6d4f22
19 lines
347 B
C++
19 lines
347 B
C++
#include <stdio.h>
|
|
|
|
#include "example.h"
|
|
|
|
void foo_by_val(Bar bar) {
|
|
bar.set(123);
|
|
printf("inside foo_by_val: %d\n", bar.get());
|
|
}
|
|
|
|
void foo_by_ref(Bar& bar) {
|
|
bar.set(123);
|
|
printf("inside foo_by_ref: %d\n", bar.get());
|
|
}
|
|
|
|
void foo_by_ptr(Bar* bar) {
|
|
bar->set(123);
|
|
printf("inside foo_by_ptr: %d\n", bar->get());
|
|
}
|
|
|