forked from M-Labs/artiq
compiler/tools/eval_constant: raise NotConstant on calls
This commit is contained in:
parent
b1598ba659
commit
24544f2758
|
@ -59,3 +59,5 @@ def eval_constant(node):
|
||||||
return units.Quantity(amount, unit)
|
return units.Quantity(amount, unit)
|
||||||
else:
|
else:
|
||||||
raise NotConstant
|
raise NotConstant
|
||||||
|
else:
|
||||||
|
raise NotConstant
|
||||||
|
|
Loading…
Reference in New Issue