Added argument and return type checking for global wrapped functions

release/4.3a0
Richard Roberts 2012-07-27 19:01:53 +00:00
parent a3ee762dac
commit aef5ae269f
1 changed files with 3 additions and 0 deletions

View File

@ -416,6 +416,9 @@ void Module::matlab_code(const string& toolboxPath, const string& headerPath) co
vector<string> validTypes = GenerateValidTypes(expandedClasses, forward_declarations);
// Check that all classes have been defined somewhere
verifyArguments<GlobalFunction>(validTypes, global_functions);
verifyReturnTypes<GlobalFunction>(validTypes, global_functions);
BOOST_FOREACH(const Class& cls, expandedClasses) {
// verify all of the function arguments
//TODO:verifyArguments<ArgumentList>(validTypes, cls.constructor.args_list);