MCPcopy Create free account
hub / github.com/crownengine/crown / te_interp

Function te_interp

3rdparty/tinyexpr/tinyexpr.c:693–707  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

691
692
693double te_interp(const char *expression, int *error) {
694 te_expr *n = te_compile(expression, 0, 0, error);
695 if (n == NULL) {
696 return NAN;
697 }
698
699 double ret;
700 if (n) {
701 ret = te_eval(n);
702 te_free(n);
703 } else {
704 ret = NAN;
705 }
706 return ret;
707}
708
709static void pn (const te_expr *n, int depth) {
710 int i, arity;

Callers

nothing calls this directly

Calls 3

te_compileFunction · 0.85
te_evalFunction · 0.85
te_freeFunction · 0.85

Tested by

no test coverage detected