Skip to content

Commit ed5930b

Browse files
committed
Update SWIG_exit for upstream
1 parent 549e265 commit ed5930b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Source/Modules/fortran.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ void FORTRAN::write_wrapper(String *filename) {
925925
File *out = NewFile(filename, "w", SWIG_output_files());
926926
if (!out) {
927927
FileErrorDisplay(filename);
928-
SWIG_exit(EXIT_FAILURE);
928+
Exit(EXIT_FAILURE);
929929
}
930930

931931
// Write SWIG auto-generation banner
@@ -960,7 +960,7 @@ void FORTRAN::write_header(String *filename, String *include_guard) {
960960
File *out = NewFile(filename, "w", SWIG_output_files());
961961
if (!out) {
962962
FileErrorDisplay(filename);
963-
SWIG_exit(EXIT_FAILURE);
963+
Exit(EXIT_FAILURE);
964964
}
965965

966966
// Write SWIG auto-generation banner
@@ -979,7 +979,7 @@ void FORTRAN::write_module(String *filename) {
979979
File *out = NewFile(filename, "w", SWIG_output_files());
980980
if (!out) {
981981
FileErrorDisplay(filename);
982-
SWIG_exit(EXIT_FAILURE);
982+
Exit(EXIT_FAILURE);
983983
}
984984

985985
// Write SWIG auto-generation banner

0 commit comments

Comments
 (0)