bug #1273: Add parentheses when redefining eigen_assert
This commit is contained in:
		
							parent
							
								
									c83b754ee0
								
							
						
					
					
						commit
						9636a8ed43
					
				| @ -16,7 +16,7 @@ Both eigen_assert and eigen_plain_assert are defined in Macros.h. Defining eigen | ||||
| #include <stdexcept> | ||||
| #undef eigen_assert | ||||
| #define eigen_assert(x) \ | ||||
|   if (!x) { throw (std::runtime_error("Put your message here")); } | ||||
|   if (!(x)) { throw (std::runtime_error("Put your message here")); } | ||||
| \endcode | ||||
| 
 | ||||
| \subsection DisableAssert Disabling assertions | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Christoph Hertzberg
						Christoph Hertzberg