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:
Maciej Drwal 2008-07-01 23:32:34 +00:00
commit 0b3d9dad0d
2 changed files with 39 additions and 7 deletions

View file

@ -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");
}