Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
deaf8f94
Commit
deaf8f94
authored
Mar 08, 2016
by
Davis King
Browse files
Made DLIB_ASSERT and DLIB_CASSERT not kill the process when running inside a
MATLAB mex file.
parent
ddf48df3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
dlib/error.h
dlib/error.h
+9
-0
No files found.
dlib/error.h
View file @
deaf8f94
...
@@ -254,6 +254,15 @@ namespace dlib
...
@@ -254,6 +254,15 @@ namespace dlib
void
check_for_previous_fatal_errors
()
void
check_for_previous_fatal_errors
()
{
{
// If dlib is being use to create plugins for some other application, like
// 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)
return
;
#endif
static
bool
is_first_fatal_error
=
true
;
static
bool
is_first_fatal_error
=
true
;
if
(
is_first_fatal_error
==
false
)
if
(
is_first_fatal_error
==
false
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment