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

Function list

extern/tinyexpr/tinyexpr.c:502–513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

500
501
502static te_expr *list(state *s) {
503 /* <list> = <expr> {"," <expr>} */
504 te_expr *ret = expr(s);
505
506 while (s->type == TOK_SEP) {
507 next_token(s);
508 ret = NEW_EXPR(TE_FUNCTION2 | TE_FLAG_PURE, ret, expr(s));
509 ret->function = comma;
510 }
511
512 return ret;
513}
514
515
516#define TE_FUN(...) ((double(*)(__VA_ARGS__))n->function)

Callers 2

baseFunction · 0.70
te_compileFunction · 0.70

Calls 2

exprFunction · 0.85
next_tokenFunction · 0.85

Tested by

no test coverage detected