if ( token != 0 && string_parse_float( token, f ) ) {
return true;
}
- #define GARUX_DISABLE_QNAN_FALLBACK
- #ifndef GARUX_DISABLE_QNAN_FALLBACK
//fallback for 1.#IND 1.#INF 1.#QNAN cases, happening sometimes after rotating & often scaling with tex lock in BP mode
else if ( token != 0 && strstr( token, ".#" ) ) {
globalErrorStream() << "Warning: " << Unsigned( tokeniser.getLine() ) << ":" << Unsigned( tokeniser.getColumn() ) << ": expected parse problem at '" << token << "': wanted '#number'\nProcessing anyway\n";
+ #define GARUX_DISABLE_QNAN_FALLBACK
+ #ifndef GARUX_DISABLE_QNAN_FALLBACK
*strstr( token, ".#" ) = '\0';
+ #endif
return true;
}
- #endif
Tokeniser_unexpectedError( tokeniser, token, "#number" );
return false;
}