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:
parent
86205e86e3
commit
03b6e2fbe6
4 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -42,6 +42,6 @@ int main() {
|
|||
|
||||
Test_delete(t);
|
||||
|
||||
SWIG_exit(0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -38,5 +38,5 @@ int main() {
|
|||
|
||||
Klass_delete(klass);
|
||||
|
||||
SWIG_exit(0);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue