@@ -61,7 +61,7 @@ extern "C" {
6161 try
6262 {
6363 MMC_TRY_TOP_INTERNAL ()
64- omcPtr-> st = omc_OpenModelicaScriptingAPI_setCommandLineOptions (threadData, omcPtr-> st , mmc_mk_scon (expression), &result );
64+ result = omc_OpenModelicaScriptingAPI_setCommandLineOptions (threadData, mmc_mk_scon (expression));
6565 MMC_CATCH_TOP ()
6666 }
6767 catch (std::exception &exception)
@@ -80,9 +80,9 @@ extern "C" {
8080 void *result_mm = NULL ;
8181 MMC_TRY_TOP_INTERNAL ()
8282 std::string name = " OpenModelica" ;
83- omcPtr-> st = omc_OpenModelicaScriptingAPI_getVersion (threadData, omcPtr-> st , mmc_mk_scon (name.c_str ()), &result_mm );
83+ result_mm = omc_OpenModelicaScriptingAPI_getVersion (threadData, mmc_mk_scon (name.c_str ()));
8484 MMC_CATCH_TOP ()
85- *result = MMC_STRINGDATA (result_mm);
85+ *result = MMC_STRINGDATA (result_mm);
8686
8787 return 1 ;
8888 }
@@ -106,7 +106,7 @@ extern "C" {
106106 try
107107 {
108108 MMC_TRY_TOP_INTERNAL ()
109- omcPtr-> st = omc_OpenModelicaScriptingAPI_loadModel (threadData, omcPtr-> st , mmc_mk_scon (className), priorityVersion_lst, notify, mmc_mk_scon (languageStandard.c_str ()), requireExactVersion, &result );
109+ result = omc_OpenModelicaScriptingAPI_loadModel (threadData, mmc_mk_scon (className), priorityVersion_lst, notify, mmc_mk_scon (languageStandard.c_str ()), requireExactVersion);
110110 MMC_CATCH_TOP ()
111111 }
112112 catch (std::exception &exception)
@@ -129,7 +129,7 @@ extern "C" {
129129 try
130130 {
131131 MMC_TRY_TOP_INTERNAL ()
132- omcPtr-> st = omc_OpenModelicaScriptingAPI_loadFile (threadData, omcPtr-> st , mmc_mk_scon (fileName), mmc_mk_scon (encoding.c_str ()), uses, &result );
132+ result = omc_OpenModelicaScriptingAPI_loadFile (threadData, mmc_mk_scon (fileName), mmc_mk_scon (encoding.c_str ()), uses);
133133 MMC_CATCH_TOP ()
134134 }
135135 catch (std::exception &ex)
@@ -151,7 +151,7 @@ extern "C" {
151151 try
152152 {
153153 MMC_TRY_TOP_INTERNAL ()
154- omcPtr-> st = omc_OpenModelicaScriptingAPI_getErrorString (threadData, omcPtr-> st , warningsAsErrors, &result_mm );
154+ result_mm = omc_OpenModelicaScriptingAPI_getErrorString (threadData, warningsAsErrors);
155155 (*result) = MMC_STRINGDATA (result_mm);
156156 MMC_CATCH_TOP ()
157157 }
@@ -169,7 +169,7 @@ extern "C" {
169169 try
170170 {
171171 MMC_TRY_TOP_INTERNAL ()
172- omcPtr-> st = omc_OpenModelicaScriptingAPI_cd (threadData, omcPtr-> st , mmc_mk_scon (directory), &reply_str );
172+ reply_str = omc_OpenModelicaScriptingAPI_cd (threadData, mmc_mk_scon (directory));
173173 (*result) = MMC_STRINGDATA (reply_str);
174174 MMC_CATCH_TOP ()
175175 }
0 commit comments