Skip to content

Commit

Permalink
Only filter public variables with HideResult, ticket:4089
Browse files Browse the repository at this point in the history
This is needed as HideResult defaults to protected.
Protected variables are filtered anyway.
  • Loading branch information
rfranke committed Oct 24, 2016
1 parent 77bf4cb commit dd59e54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SimulationRuntime/c/simulation/simulation_input_xml.c
Expand Up @@ -613,7 +613,7 @@ void read_input_xml(MODEL_DATA* modelData,
infoStreamPrint(LOG_DEBUG, 0, "filtering protected variable %s", info->name); \
out[j].filterOutput = 1; \
} \
else if (!omc_flag[FLAG_IGNORE_HIDERESULT] && 0 == strcmp(findHashStringString(v, "hideResult"), "true")) \
else if (!omc_flag[FLAG_IGNORE_HIDERESULT] && 0 == strcmp(findHashStringString(v, "hideResult"), "true") && 0 == strcmp(findHashStringString(v, "isProtected"), "false")) \
{ \
infoStreamPrint(LOG_DEBUG, 0, "filtering variable %s due to HideResult annotation", info->name); \
out[j].filterOutput = 1; \
Expand Down

0 comments on commit dd59e54

Please sign in to comment.