Skip to content

Commit

Permalink
Add description of usage
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardoRSeifert committed Sep 25, 2024
1 parent 086a184 commit 067eb74
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions parser/mpFuncCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -400,11 +400,14 @@ MUP_NAMESPACE_START
return new FunMask(*this);
}

//------------------------------------------------------------------------------
//
// Case
//
//------------------------------------------------------------------------------
//----------------------------------------------------------------------------------
// |
// Function calculate custom switch case |
// Usage: case("variable", "exp1;res1", "exp2;res2", "default;defres") |
// Optional: '@' token in exp = evaluate(variable + exp1) |
// Optional: '@' token in res = evaluate(res) |
// |
//----------------------------------------------------------------------------------

FunCase::FunCase()
:ICallback(cmFUNC, _T("case"), -1)
Expand Down

0 comments on commit 067eb74

Please sign in to comment.