Static member variable handler.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-maciekd@10623 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
9c07e2a9e5
commit
0b3d9dad0d
2 changed files with 39 additions and 7 deletions
|
|
@ -9,7 +9,7 @@ int main(int argc, char **argv) {
|
|||
Square* s = new_Square(10);
|
||||
printf(" Created square\n");
|
||||
|
||||
printf("\nA total of %d shapes were created\n", 0);
|
||||
printf("\nA total of %d shapes were created\n", Shape_get_nshapes());
|
||||
|
||||
Circle_set_x(c, 20);
|
||||
Circle_set_y(c, 30);
|
||||
|
|
@ -36,7 +36,7 @@ int main(int argc, char **argv) {
|
|||
delete_Square(s);
|
||||
delete_Circle(c);
|
||||
|
||||
printf("%d shapes remain\n", 0);
|
||||
printf("%d shapes remain\n", Shape_get_nshapes());
|
||||
printf("Goodbye\n");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue