From b290aeb83c70de79afbaca592bc66f43f3d222d3 Mon Sep 17 00:00:00 2001 From: Andreas <38031952+AnHeuermann@users.noreply.github.com> Date: Mon, 17 Jun 2024 15:16:49 +0200 Subject: [PATCH] Removing EXIT from simulation main function (#12593) --- OMCompiler/Compiler/Template/CodegenC.tpl | 3 --- 1 file changed, 3 deletions(-) diff --git a/OMCompiler/Compiler/Template/CodegenC.tpl b/OMCompiler/Compiler/Template/CodegenC.tpl index 914d5f5243..9084cc2b30 100644 --- a/OMCompiler/Compiler/Template/CodegenC.tpl +++ b/OMCompiler/Compiler/Template/CodegenC.tpl @@ -1431,9 +1431,6 @@ template simulationFile(SimCode simCode, String guid, String isModelExchangeFMU) <%if Flags.isSet(HPCOM) then "terminateHpcOmThreads();" %> <%if Flags.getConfigBool(Flags.PARMODAUTO) then "dump_times(pm_model);" %> fflush(NULL); - #if !defined(OMC_DLL_MAIN_DEFINE) /* do not exit, return in DLL mode */ - EXIT(res); - #endif return res; }