diff options
author | Ian Hinder <ian.hinder@aei.mpg.de> | 2013-09-12 12:25:17 +0200 |
---|---|---|
committer | Ian Hinder <ian.hinder@aei.mpg.de> | 2013-09-12 12:25:17 +0200 |
commit | fa7c5ceebcba28d49aea32306e283bd47d0a9972 (patch) | |
tree | 5ba670f216ac50645b68edd828d5708c135894b6 | |
parent | 72837a1c287a2e31226db8cb2c59f053ab8c92f1 (diff) |
ParamCheck.m: Bypass bug in checkCondition
The "params" variable is never initialised, so the code as written is wrong. Bypass the corresponding check until the parameters are passed in.
-rw-r--r-- | Tools/CodeGen/ParamCheck.m | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Tools/CodeGen/ParamCheck.m b/Tools/CodeGen/ParamCheck.m index 1276649..551c433 100644 --- a/Tools/CodeGen/ParamCheck.m +++ b/Tools/CodeGen/ParamCheck.m @@ -73,8 +73,9 @@ DefFn[checkCondition[{cond_, error_String}] := (* rendervalue[a_String] := a; -- Allow literal pass-through *) rendervalue[a_?NumberQ] := ToString[a]; rendervalue[Parameter[a_String]] := a; - rendervalue[a_ /; MemberQ[params,a]] := ToString[a]; - rendervalue[x_] := ThrowError["Unexpected value in run-time conditional expression (value):", x, "in", cond]; + (* TODO: pass in valid parameters *) + rendervalue[a_ (*/; MemberQ[params,a] *) ] := ToString[a]; + (* rendervalue[x_] := ThrowError["Unexpected value in run-time conditional expression (value):", x, "in", cond]; *) ConditionalOnParameterTextual[ renderbool[cond], |