Skip to content

Commit

Permalink
Kranc.m: provide legacy ValueQ function
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaas80 committed Jan 7, 2022
1 parent af2c41a commit 025de5e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Tools/CodeGen/Kranc.m
Expand Up @@ -72,6 +72,10 @@

(* KrancThorn.m *)

(* provide a ValueQ function the way we expect *)
SetAttributes[ValueQLegacy, HoldAll]
ValueQLegacy[x_] := If[$VersionNumber >= 12.2, ValueQ[x, Method -> "Legacy"], ValueQ[x]]

(* Work around bug in Mathematica 10.0.0 where z is a symbol in the global context *)
If[NameQ["Global`z"] && !ValueQ[Global`z], Remove[Global`z]];

Expand Down

0 comments on commit 025de5e

Please sign in to comment.