Check if function name contains _main

This commit is contained in:
Polona Caserman 2017-01-03 10:10:46 +01:00 committed by Robert Konrad
parent 5de757621c
commit df3e4c3eb3

View File

@ -1390,6 +1390,7 @@ string CompilerMSL::clean_func_name(string func_name)
}
void CompilerMSL::set_func_name(std::string func_name) {
if (func_name.find("main") == std::string::npos) func_name += "_main";
_clean_msl_main_func_name = func_name;
}