Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Andrew Bauer
VTK
Commits
e159e8a7
Commit
e159e8a7
authored
Mar 28, 1997
by
Charles Law
Browse files
Break on error
parent
c9eee8eb
Changes
3
Hide whitespace changes
Inline
Side-by-side
common/vtkObject.cxx
View file @
e159e8a7
...
...
@@ -137,3 +137,13 @@ void vtkObject::SetDebug(int debugFlag)
this
->
Debug
=
debugFlag
;
}
// Description:
// This method is called when vtkErrorMacro executes. It allows
// the debugger to break on error.
void
vtkObject
::
BreakOnError
()
{
}
common/vtkObject.h
View file @
e159e8a7
...
...
@@ -80,6 +80,8 @@ public:
virtual
void
PrintHeader
(
ostream
&
os
,
vtkIndent
indent
);
virtual
void
PrintTrailer
(
ostream
&
os
,
vtkIndent
indent
);
static
void
BreakOnError
();
protected:
int
Debug
;
// Enable debug messages
vtkTimeStamp
MTime
;
// Keep track of modification time
...
...
common/vtkSetGet.h
View file @
e159e8a7
...
...
@@ -363,7 +363,7 @@ void Get##name (type data[count]) \
vtkmsgbuff = vtkmsg.str(); \
vtkmsgbuff[vtkmsg.pcount()] = '\0'; \
MessageBox(NULL,vtkmsgbuff,"Debug Info",MB_ICONERROR | MB_OK); \
delete vtkmsgbuff;}
delete vtkmsgbuff;
vtkObject::BreakOnError();
}
#else
//
...
...
@@ -385,7 +385,7 @@ void Get##name (type data[count]) \
// vtkErrorMacro(<< "Error message" << variable);
//
#define vtkErrorMacro(x) \
cerr << "ERROR In " __FILE__ << ", line " << __LINE__ << "\n" << this->GetClassName() << " (" << this << "): " x << "\n\n"
{
cerr << "ERROR In " __FILE__ << ", line " << __LINE__ << "\n" << this->GetClassName() << " (" << this << "): " x << "\n\n"
; vtkObject::BreakOnError();}
#endif
//
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment