MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / te_interp

Function te_interp

extern/tinyexpr/tinyexpr.c:613–623  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

611
612
613double te_interp(const char *expression, int *error) {
614 te_expr *n = te_compile(expression, 0, 0, error);
615 double ret;
616 if (n) {
617 ret = te_eval(n);
618 te_free(n);
619 } else {
620 ret = NAN;
621 }
622 return ret;
623}
624
625static void pn (const te_expr *n, int depth) {
626 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