Dahomey.ExpressionEvaluator icon indicating copy to clipboard operation
Dahomey.ExpressionEvaluator copied to clipboard

Not AOT safe

Open uurha opened this issue 5 years ago • 3 comments

Code in NumericFuncExpression class is not AOT safe for Unity 2019.4.1f.

uurha avatar Oct 01 '20 09:10 uurha

This example https://github.com/dahomey-technologies/Dahomey.ExpressionEvaluator#parse-a-numeric-expression-with-function-access , not working with IL2CPP baking in case if you want to use standard Math functions you need to specify them in "UnaryExpression()" and "TryScanName()" methods, "Operator" and "TokenType" enums, and in "NumericArithmeticExpression" class.

uurha avatar Oct 01 '20 12:10 uurha

I can create pull request if needed.

uurha avatar Oct 01 '20 12:10 uurha

@uurha yes please

mcatanzariti avatar Oct 02 '20 18:10 mcatanzariti