Added DLIB_NO_ABORT_ON_2ND_FATAL_ERROR for dlib::fatal_error as a generic

switch for use in plugin environments.
This commit is contained in:
Davis King 2017-08-10 16:07:42 -04:00
parent 2630029cb4
commit 4ab360e439
1 changed files with 1 additions and 1 deletions

View File

@ -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;