MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / aotModuleHasName

Function aotModuleHasName

src/ast/ast_parse.cpp:1059–1068  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1057 }
1058
1059 bool aotModuleHasName ( ProgramPtr program, const ModuleInfo & mod ) {
1060 if ( bool no_aot = program->options.getBoolOption("no_aot",false); no_aot )
1061 return true;
1062 if ( !program->thisModule->name.empty() )
1063 return true;
1064 program->error("Module " + mod.moduleName + " is not setup correctly for AOT",
1065 "module " + mod.moduleName + " is required", "", LineInfo(),
1066 CompilationError::missing_module_name);
1067 return false;
1068 }
1069
1070 void addNewModules ( ModuleGroup & libGroup, ProgramPtr program ) {
1071 libGroup.addModule(program->thisModule.release());

Callers 1

compileDaScriptFunction · 0.85

Calls 4

getBoolOptionMethod · 0.80
LineInfoClass · 0.50
emptyMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected