- don't spam the console log if there's math errors - mostly affects Linux/MacOS because there is no distinction from console apps or GUI apps so they put all the data in the console which can cause lag

This commit is contained in:
Rachael Alexanderson 2024-10-09 21:27:07 -04:00
parent 0347d0d9af
commit 8bc21963e6
No known key found for this signature in database
GPG key ID: 26A8ACCE97115EE0

View file

@ -106,7 +106,7 @@ int mtherr(char* name, int code)
* which is supposed to be the name of the * which is supposed to be the name of the
* function in which the error occurred: * function in which the error occurred:
*/ */
printf( "\n%s ", name ); //printf( "\n%s ", name );
/* Set global error message word */ /* Set global error message word */
merror = code; merror = code;
@ -116,7 +116,7 @@ merror = code;
*/ */
if( (code <= 0) || (code >= 7) ) if( (code <= 0) || (code >= 7) )
code = 0; code = 0;
printf( "%s error\n", ermsg[code] ); //printf( "%s error\n", ermsg[code] );
/* Return to calling /* Return to calling
* program * program