mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2025-04-11 03:20:46 +01:00
Math interpreter: added inf as a constant
This commit is contained in:
parent
9e8021d7d7
commit
80b826040b
@ -690,6 +690,7 @@ void MathInterpreter::compile(RunContext &context)
|
|||||||
if (root_)
|
if (root_)
|
||||||
{
|
{
|
||||||
context.addVariable("pi", Math::pi);
|
context.addVariable("pi", Math::pi);
|
||||||
|
context.addVariable("inf", HUGE_VAL);
|
||||||
ADD_STDMATH_FUNCS(context);
|
ADD_STDMATH_FUNCS(context);
|
||||||
root_->compile(program_, context);
|
root_->compile(program_, context);
|
||||||
for (unsigned int i = 0; i < program_.size(); ++i)
|
for (unsigned int i = 0; i < program_.size(); ++i)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user