Commit 4ab360e4 authored by Davis King's avatar Davis King

Added DLIB_NO_ABORT_ON_2ND_FATAL_ERROR for dlib::fatal_error as a generic

switch for use in plugin environments.
parent 2630029c
......@@ -258,7 +258,7 @@ namespace dlib
// MATLAB, then don't do these checks since it terminates the over arching
// system. Just let the errors go to the plugin handler and it will deal with
// them.
#if defined(MATLAB_MEX_FILE)
#if defined(MATLAB_MEX_FILE) || defined(DLIB_NO_ABORT_ON_2ND_FATAL_ERROR)
return;
#else
static bool is_first_fatal_error = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment