TwHanldeErrors (function)
DescriptionBy default, if an error occurs AntTweakBar prints a message to the standard error console output stream (stderr, cerr), and optionally to the output debug panel if your app is run from Visual Studio.
ParametererrorHandlerThe function that will be called by AntTweakBar when an error occurs. You should define this function like this: void TW_CALL MyErrorHandler(const char *errorMessage) { // do something, or nothing. } Example#include <assert.h> void TW_CALL BreakOnError(const char *errorMessage) { assert(errorMessage==NULL); // show an assert message if an error occurred } // ... TwHandleErrors(BreakOnError); See also |