"git@developer.sourcefind.cn:OpenDAS/dlib.git" did not exist on "cd71dab3f2ca6a044f00590932a88c554433d2ad"
Commit ff6bd2dd authored by Davis King's avatar Davis King
Browse files

Added an assert on the size of matlab's bools.

parent 95c5e959
...@@ -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));
} }
......
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