Skip to content

Commit

Permalink
-Added enumeration to valueString function.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/branches/MathCoreOSMC@3954 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Peter Aronsson committed Mar 18, 2009
1 parent 30af5d3 commit 8dd4945
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Compiler/Values.mo
Expand Up @@ -1715,6 +1715,7 @@ algorithm
list<Value> vs;
Value r;
Absyn.CodeNode c;
Exp.ComponentRef cr;
case INTEGER(integer = n)
equation
s = intString(n);
Expand Down Expand Up @@ -1770,9 +1771,12 @@ algorithm
s_2 = stringAppend(s_1, "}");
then
s_2;
case(ENUM(cr)) equation
s = "enumerationValue("+&Exp.printComponentRefStr(cr)+&")";
then s;
case _
equation
//print("- val_string failed\n");
print("- val_string failed\n");
then
fail();
end matchcontinue;
Expand Down

0 comments on commit 8dd4945

Please sign in to comment.