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
ff6bd2dd
"git@developer.sourcefind.cn:OpenDAS/dlib.git" did not exist on "9a86f1fa4c47e2289c97c68ef6b231af7e79017d"
Commit
ff6bd2dd
authored
Aug 22, 2016
by
Davis King
Browse files
Added an assert on the size of matlab's bools.
parent
95c5e959
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
dlib/matlab/mex_wrapper.cpp
dlib/matlab/mex_wrapper.cpp
+1
-0
No files found.
dlib/matlab/mex_wrapper.cpp
View file @
ff6bd2dd
...
@@ -700,6 +700,7 @@ namespace mex_binding
...
@@ -700,6 +700,7 @@ namespace mex_binding
sout
<<
" argument "
<<
arg_idx
+
1
<<
" must be a matrix of logical elements."
;
sout
<<
" argument "
<<
arg_idx
+
1
<<
" must be a matrix of logical elements."
;
throw
invalid_args_exception
(
sout
.
str
());
throw
invalid_args_exception
(
sout
.
str
());
}
}
DLIB_CASSERT
(
sizeof
(
mxLogical
)
==
sizeof
(
bool
),
"logical matrices are not supported by the mex wrapper when mxLogical isn't a bool."
);
assign_mat
(
arg_idx
,
arg
,
pointer_to_matrix
((
const
bool
*
)
mxGetData
(
prhs
),
nc
,
nr
));
assign_mat
(
arg_idx
,
arg
,
pointer_to_matrix
((
const
bool
*
)
mxGetData
(
prhs
),
nc
,
nr
));
}
}
...
...
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