Initial C++ exceptions support (still work in progress). Some typemap fixes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-maciekd@10661 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
542c21b6fe
commit
03d275e42f
3 changed files with 261 additions and 113 deletions
|
|
@ -5,11 +5,14 @@
|
|||
int main(int argc, char** argv) {
|
||||
Bar *b = foo_ret_val();
|
||||
printf("x = %d\n", Bar_get(b));
|
||||
Bar *bp = foo_ret_ptr(NULL);
|
||||
Bar *br = foo_ret_ref(new_Bar());
|
||||
|
||||
Bar *c = new_Bar();
|
||||
Bar *bp = foo_ret_ptr(c);
|
||||
//Bar *br = foo_ret_ref(c);
|
||||
|
||||
delete_Bar(b);
|
||||
delete_Bar(br);
|
||||
delete_Bar(bp);
|
||||
delete_Bar(c);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue