1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 16:15:20 +02:00

Fix hexadecimal line number in abort msgs

This commit is contained in:
sfan5
2024-10-07 21:15:05 +02:00
parent 3778ed7466
commit dbf103da32

View File

@@ -54,7 +54,7 @@ void sanity_check_fn(const char *assertion, const char *file,
#endif #endif
errorstream << std::endl << "In thread " << std::hex errorstream << std::endl << "In thread " << std::hex
<< std::this_thread::get_id() << ":" << std::endl; << std::this_thread::get_id() << ":\n" << std::dec;
errorstream << file << ":" << line << ": " << function errorstream << file << ":" << line << ": " << function
<< ": An engine assumption '" << assertion << "' failed." << std::endl; << ": An engine assumption '" << assertion << "' failed." << std::endl;
@@ -69,7 +69,7 @@ void fatal_error_fn(const char *msg, const char *file,
#endif #endif
errorstream << std::endl << "In thread " << std::hex errorstream << std::endl << "In thread " << std::hex
<< std::this_thread::get_id() << ":" << std::endl; << std::this_thread::get_id() << ":\n" << std::dec;
errorstream << file << ":" << line << ": " << function errorstream << file << ":" << line << ": " << function
<< ": A fatal error occurred: " << msg << std::endl; << ": A fatal error occurred: " << msg << std::endl;