mirror of
				https://github.com/eledio-devices/thirdparty-tinyexpr.git
				synced 2025-10-31 00:32:38 +01:00 
			
		
		
		
	Changed error handling a bit. te_interp returns NaN for bad expressions.
This commit is contained in:
		| @@ -32,7 +32,7 @@ int main(int argc, char *argv[]) | ||||
|         printf("\t%*s^\nError near here", err-1, ""); | ||||
|     } | ||||
|  | ||||
|     /* te_free should always be called after te_compile. */ | ||||
|     /* te_free is safe to call on null. */ | ||||
|     te_free(n); | ||||
|  | ||||
|     return 0; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user