Merge changes from the witness.
This commit is contained in:
@ -453,7 +453,7 @@ namespace
|
||||
{
|
||||
MSG msg;
|
||||
while( PeekMessage( &msg, NULL, 0, 0, PM_REMOVE ) ) {
|
||||
if( msg.message == WM_QUIT ) break;
|
||||
//if( msg.message == WM_QUIT ) break;
|
||||
TranslateMessage( &msg );
|
||||
DispatchMessage( &msg );
|
||||
}
|
||||
@ -467,12 +467,11 @@ namespace
|
||||
StringBuilder error_string;
|
||||
if( func != NULL ) {
|
||||
error_string.format( "*** Assertion failed: %s\n On file: %s\n On function: %s\n On line: %d\n ", exp, file, func, line );
|
||||
nvDebug( error_string.str() );
|
||||
}
|
||||
else {
|
||||
error_string.format( "*** Assertion failed: %s\n On file: %s\n On line: %d\n ", exp, file, line );
|
||||
nvDebug( error_string.str() );
|
||||
}
|
||||
nvDebug( error_string.str() );
|
||||
|
||||
if (debug::isDebuggerPresent()) {
|
||||
return NV_ABORT_DEBUG;
|
||||
|
@ -70,15 +70,11 @@ namespace nv
|
||||
b = temp;
|
||||
}
|
||||
|
||||
/// Return the maximum of the two arguments.
|
||||
/// Return the maximum of the two arguments. For floating point values, it returns the second value if the first is NaN.
|
||||
template <typename T>
|
||||
inline const T & max(const T & a, const T & b)
|
||||
{
|
||||
//return std::max(a, b);
|
||||
if( a < b ) {
|
||||
return b;
|
||||
}
|
||||
return a;
|
||||
return (b < a) ? a : b;
|
||||
}
|
||||
|
||||
/// Return the maximum of the three arguments.
|
||||
@ -92,11 +88,7 @@ namespace nv
|
||||
template <typename T>
|
||||
inline const T & min(const T & a, const T & b)
|
||||
{
|
||||
//return std::min(a, b);
|
||||
if( b < a ) {
|
||||
return b;
|
||||
}
|
||||
return a;
|
||||
return (a < b) ? a : b;
|
||||
}
|
||||
|
||||
/// Return the maximum of the three arguments.
|
||||
|
Reference in New Issue
Block a user