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

Function list

3rdparty/tinyexpr/tinyexpr.c:571–589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

569
570
571static te_expr *list(state *s) {
572 /* <list> = <expr> {"," <expr>} */
573 te_expr *ret = expr(s);
574 CHECK_NULL(ret);
575
576 while (s->type == TOK_SEP) {
577 next_token(s);
578 te_expr *e = expr(s);
579 CHECK_NULL(e, te_free(ret));
580
581 te_expr *prev = ret;
582 ret = NEW_EXPR(TE_FUNCTION2 | TE_FLAG_PURE, ret, e);
583 CHECK_NULL(ret, te_free(e), te_free(prev));
584
585 ret->function = comma;
586 }
587
588 return ret;
589}
590
591
592#define TE_FUN(...) ((double(*)(__VA_ARGS__))n->function)

Callers 2

baseFunction · 0.70
te_compileFunction · 0.70

Calls 3

next_tokenFunction · 0.85
te_freeFunction · 0.85
exprFunction · 0.70

Tested by

no test coverage detected