SUMMARY:  INNER | FIELD | CONSTR | METHOD | FRIEND DETAIL:  FIELD | CONSTR | METHOD | FRIEND


Platform::Runtime
Class AssertHandler

NonCopyableType
   |
   +-AssertHandler

Implemented in:
Platform.Runtime.AssertHandler.h

class AssertHandler:
private NonCopyableType

Sets the specified global assert handler in the current scope. The previously installed assert handler is preserved and restored at the end of the scope.

Remarks:
not thread safe, use with caution in a multithreaded environment
See Also:
setAssertHandler

Constructor Summarycollapse
AssertHandler(AssertFunction handler = Null)
          Preserves the currently installed global assert handler and installs the specified one for the current scope.
~AssertHandler()
          Restores the global assert handler to the previously saved state.

 

Constructor Detail

AssertHandler[nothrow, inline]

AssertHandler(AssertFunction handler = Null)

Preserves the currently installed global assert handler and installs the specified one for the current scope. If the handler parameter is Null the default (built-in) platform assert handler is installed.

Parameters:
handler - the assert handler function

~AssertHandler[nothrow, inline]

~AssertHandler()

Restores the global assert handler to the previously saved state.



SUMMARY:  INNER | FIELD | CONSTR | METHOD | FRIEND DETAIL:  FIELD | CONSTR | METHOD | FRIEND