mirror of
				https://github.com/eledio-devices/thirdparty-tinyexpr.git
				synced 2025-10-31 16:14:16 +01:00 
			
		
		
		
	More code highlighting.
This commit is contained in:
		| @@ -114,11 +114,13 @@ This produces the output: | |||||||
|  |  | ||||||
| TINYEXPR defines only five functions: | TINYEXPR defines only five functions: | ||||||
|  |  | ||||||
|  | ```C | ||||||
|     double te_interp(const char *expression, int *error); |     double te_interp(const char *expression, int *error); | ||||||
|     te_expr *te_compile(const char *expression, const te_variable *lookup, int lookup_len, int *error); |     te_expr *te_compile(const char *expression, const te_variable *lookup, int lookup_len, int *error); | ||||||
|     double te_eval(te_expr *n); |     double te_eval(te_expr *n); | ||||||
|     void te_print(const te_expr *n); |     void te_print(const te_expr *n); | ||||||
|     void te_free(te_expr *n); |     void te_free(te_expr *n); | ||||||
|  | ``` | ||||||
|  |  | ||||||
| **te_interp** takes an expression and immediately returns the result of it. If | **te_interp** takes an expression and immediately returns the result of it. If | ||||||
| an error pointer is passed in, *te_interp* will set it to 0 for success or | an error pointer is passed in, *te_interp* will set it to 0 for success or | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user