Skip to content

Commit

Permalink
Update src/mlfmu/fmu_build/templates/fmu/fmu_template.cpp
Browse files Browse the repository at this point in the history
undo linting, fix templating, Kristoffer's suggestion

Co-authored-by: KristofferSkare <[email protected]>
  • Loading branch information
StephanieKemna and KristofferSkare authored Aug 1, 2024
1 parent 91a103a commit 6ffef30
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/mlfmu/fmu_build/templates/fmu/fmu_template.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,9 @@ cppfmu::UniquePtr<cppfmu::SlaveInstance> CppfmuInstantiateSlave(
cppfmu::FMIString /*instanceName*/, cppfmu::FMIString fmuGUID, cppfmu::FMIString fmuResourceLocation,
cppfmu::FMIString /*mimeType*/, cppfmu::FMIReal /*timeout*/, cppfmu::FMIBoolean /*visible*/,
cppfmu::FMIBoolean /*interactive*/, cppfmu::Memory memory, cppfmu::Logger /*logger*/)
{
{
if (std::strcmp(fmuGUID, FMU_UUID) != 0) {
{
throw std::runtime_error("FMU GUID mismatch");
}
}
return cppfmu::AllocateUnique<{FmuName}>(memory, fmuResourceLocation);
}
}
{{
if (std::strcmp(fmuGUID, FMU_UUID) != 0) {{
throw std::runtime_error("FMU GUID mismatch");
}}
return cppfmu::AllocateUnique<{FmuName}>(memory, fmuResourceLocation);
}}

0 comments on commit 6ffef30

Please sign in to comment.