diff --git a/library/PolyVoxCore/include/PolyVoxCore/Impl/ErrorHandling.h b/library/PolyVoxCore/include/PolyVoxCore/Impl/ErrorHandling.h index 8df554a3..c81c8221 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/Impl/ErrorHandling.h +++ b/library/PolyVoxCore/include/PolyVoxCore/Impl/ErrorHandling.h @@ -121,7 +121,7 @@ namespace PolyVox ss << " Condition: " << #condition << std::endl; \ ss << " Message: " << (message) << std::endl; \ ss << " Location: " << "Line " << __LINE__ << " of " << __FILE__ << std::endl << std::endl; \ - logFatal(ss.str()); \ + PolyVox::logFatal(ss.str()); \ POLYVOX_HALT(); \ } \ } while(0) \ @@ -176,7 +176,7 @@ namespace PolyVox */ #ifdef POLYVOX_THROW_ENABLED #define POLYVOX_THROW(type, message) \ - log(message, LogLevels::Error); \ + PolyVox::logError(message); \ throw type((message)) #else namespace PolyVox @@ -188,7 +188,7 @@ namespace PolyVox } #define POLYVOX_THROW(type, message) \ - log(message, LogLevels::Error); \ + PolyVox::logError(message); \ type except = (type)((message)); \ getThrowHandler()((except), __FILE__, __LINE__) #endif diff --git a/library/PolyVoxCore/source/Impl/ErrorHandling.cpp b/library/PolyVoxCore/source/Impl/ErrorHandling.cpp index c07429df..8e90bb3e 100644 --- a/library/PolyVoxCore/source/Impl/ErrorHandling.cpp +++ b/library/PolyVoxCore/source/Impl/ErrorHandling.cpp @@ -133,7 +133,7 @@ namespace PolyVox ss << " Line: " << line << std::endl; \ ss << " File: " << file << std::endl; \ ss << " Message: " << e.what() << std::endl << std::endl; \ - logFatal(ss.str()); \ + PolyVox::logFatal(ss.str()); \ POLYVOX_HALT(); \ }