Compile fixes brought across from Cubiquity.
This commit is contained in:
		@@ -121,7 +121,7 @@ namespace PolyVox
 | 
				
			|||||||
				ss << "    Condition: " << #condition << std::endl; \
 | 
									ss << "    Condition: " << #condition << std::endl; \
 | 
				
			||||||
				ss << "    Message:   " << (message) << std::endl; \
 | 
									ss << "    Message:   " << (message) << std::endl; \
 | 
				
			||||||
				ss << "    Location:  " << "Line " << __LINE__ << " of " << __FILE__ << std::endl << std::endl; \
 | 
									ss << "    Location:  " << "Line " << __LINE__ << " of " << __FILE__ << std::endl << std::endl; \
 | 
				
			||||||
				logFatal(ss.str()); \
 | 
									PolyVox::logFatal(ss.str()); \
 | 
				
			||||||
				POLYVOX_HALT(); \
 | 
									POLYVOX_HALT(); \
 | 
				
			||||||
			} \
 | 
								} \
 | 
				
			||||||
		} while(0) \
 | 
							} while(0) \
 | 
				
			||||||
@@ -176,7 +176,7 @@ namespace PolyVox
 | 
				
			|||||||
 */
 | 
					 */
 | 
				
			||||||
#ifdef POLYVOX_THROW_ENABLED
 | 
					#ifdef POLYVOX_THROW_ENABLED
 | 
				
			||||||
	#define POLYVOX_THROW(type, message) \
 | 
						#define POLYVOX_THROW(type, message) \
 | 
				
			||||||
		log(message, LogLevels::Error); \
 | 
							PolyVox::logError(message); \
 | 
				
			||||||
		throw type((message))
 | 
							throw type((message))
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
	namespace PolyVox
 | 
						namespace PolyVox
 | 
				
			||||||
@@ -188,7 +188,7 @@ namespace PolyVox
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	#define POLYVOX_THROW(type, message) \
 | 
						#define POLYVOX_THROW(type, message) \
 | 
				
			||||||
		log(message, LogLevels::Error); \
 | 
							PolyVox::logError(message); \
 | 
				
			||||||
		type except = (type)((message)); \
 | 
							type except = (type)((message)); \
 | 
				
			||||||
		getThrowHandler()((except), __FILE__, __LINE__)
 | 
							getThrowHandler()((except), __FILE__, __LINE__)
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -133,7 +133,7 @@ namespace PolyVox
 | 
				
			|||||||
		ss << "    Line:    " << line << std::endl; \
 | 
							ss << "    Line:    " << line << std::endl; \
 | 
				
			||||||
		ss << "    File:    " << file << std::endl; \
 | 
							ss << "    File:    " << file << std::endl; \
 | 
				
			||||||
		ss << "    Message: " << e.what() << std::endl << std::endl; \
 | 
							ss << "    Message: " << e.what() << std::endl << std::endl; \
 | 
				
			||||||
		logFatal(ss.str()); \
 | 
							PolyVox::logFatal(ss.str()); \
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		POLYVOX_HALT(); \
 | 
							POLYVOX_HALT(); \
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user