Skip to content

Commit 6e3c813

Browse files
authored
Merge pull request #4378 from roystgnr/fix_no_exceptions_again
Fix `--disable-exceptions` builds
2 parents dc0989c + 41463c3 commit 6e3c813

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

include/base/libmesh_exceptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ class TerminationException
219219

220220
#else
221221

222-
#define LIBMESH_THROW(e) do { libMesh::err << e.what(); libmesh_abort(); } while (0)
222+
#define LIBMESH_THROW(e) do { libMesh::err << e.what(); libMesh::libmesh_abort(); } while (0)
223223
#define libmesh_rethrow
224224
#define libmesh_try
225225
#define libmesh_catch(e) if (0)

src/base/libmesh.C

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,9 @@ MPI_Comm GLOBAL_COMM_WORLD = MPI_COMM_NULL;
160160
int GLOBAL_COMM_WORLD = 0;
161161
#endif
162162

163+
#ifdef LIBMESH_ENABLE_EXCEPTIONS
163164
std::terminate_handler LibMeshInit::_old_terminate_handler;
165+
#endif
164166

165167
OStreamProxy out(std::cout);
166168
OStreamProxy err(std::cerr);

0 commit comments

Comments
 (0)