Skip to content

C++ entry points should have some error checking to ensure inputs are of the right type #185

@duncanpo

Description

@duncanpo

Currently, C++ entry points do not perform any error checking and simply assumes inputs are of the right type. Consider making them more robust by adding some type checking and assertion otherwise. For example,

matlab::data::ArrayType type = value_mda[0].getType();
if (type == matlab::data::ArrayType::DOUBLE)
/* do something*/
else
/* assert */

Metadata

Metadata

Assignees

Labels

refactoringCode clean up, technical debt reduction

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions