For example , I use
Code: Select all
sqrt(x*500)*5000 % 1
Code: Select all
random(x)
While exprtk allows user defined functions: https://github.com/ArashPartow/exprtk/b ... .txt#L1803, their user-definition is compile-time and written in C++, so not our option.
What I think is more like preprocessor macros.
So, if user defines
Code: Select all
func wat(a, b, c) = (a + b) * c
Code: Select all
wat(1,2,3)
Code: Select all
(1 + 2) * 3
Sounds not so hard, right?