mirror of https://github.com/davisking/dlib.git
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:
parent
2630029cb4
commit
4ab360e439
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue