Don't use SWIG_exit() in C examples

There doesn't seem to be any reason for using it rather than just
returning from main() as usual, and it provokes warnings about
implicitly declared function when compiling them.
This commit is contained in:
Vadim Zeitlin 2021-10-05 00:26:12 +02:00
commit 03b6e2fbe6
4 changed files with 4 additions and 4 deletions

View file

@ -39,6 +39,6 @@ int main(int argc, char **argv) {
printf("%d shapes remain\n", Shape_nshapes_get());
printf("Goodbye\n");
SWIG_exit(0);
return 0;
}

View file

@ -42,6 +42,6 @@ int main() {
Test_delete(t);
SWIG_exit(0);
return 0;
}

View file

@ -10,6 +10,6 @@ int main(int argc, char **argv) {
printf("Foo = %f\n", Foo);
Foo = 3.1415926;
printf("Foo = %f\n", Foo);
SWIG_exit(0);
return 0;
}

View file

@ -38,5 +38,5 @@ int main() {
Klass_delete(klass);
SWIG_exit(0);
return 0;
}