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
026bcce4
Commit
026bcce4
authored
Apr 02, 1997
by
LYMB Demo
Browse files
pc memory fix
parent
ab4b8fea
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/vtkSetGet.h
View file @
026bcce4
...
...
@@ -335,11 +335,10 @@ void Get##name (type data[count]) \
//
#define vtkDebugMacro(x) \
{ if (Debug) { char *vtkmsgbuff; ostrstream vtkmsg; \
vtkmsg << "Debug: In " __FILE__ << ", line " << __LINE__ << "\n" << this->GetClassName() << " (" << this << "): " x <<
"\n\n "
; \
vtkmsg << "Debug: In " __FILE__ << ", line " << __LINE__ << "\n" << this->GetClassName() << " (" << this << "): " x <<
ends
; \
vtkmsgbuff = vtkmsg.str(); \
vtkmsgbuff[vtkmsg.pcount()] = '\0'; \
MessageBox(NULL,vtkmsgbuff,"Debug Info",MB_ICONINFORMATION | MB_OK); \
delete vtkmsgbuff
;}}
vtkmsg.rdbuf()->freeze(0)
;}}
//
// This macro is used to print out warning messages.
...
...
@@ -347,11 +346,10 @@ void Get##name (type data[count]) \
//
#define vtkWarningMacro(x) \
{ char *vtkmsgbuff; ostrstream vtkmsg; \
vtkmsg << "Warning: In " __FILE__ << ", line " << __LINE__ << "\n" << this->GetClassName() << " (" << this << "): " x <<
"\n\n "
; \
vtkmsg << "Warning: In " __FILE__ << ", line " << __LINE__ << "\n" << this->GetClassName() << " (" << this << "): " x <<
ends
; \
vtkmsgbuff = vtkmsg.str(); \
vtkmsgbuff[vtkmsg.pcount()] = '\0'; \
MessageBox(NULL,vtkmsgbuff,"Debug Info",MB_ICONWARNING | MB_OK); \
delete vtkmsgbuff;}
MessageBox(NULL,vtkmsgbuff,"Warning",MB_ICONWARNING | MB_OK); \
vtkmsg.rdbuf()->freeze(0);}
//
// This macro is used to print out errors
...
...
@@ -359,11 +357,10 @@ void Get##name (type data[count]) \
//
#define vtkErrorMacro(x) \
{ char *vtkmsgbuff; ostrstream vtkmsg; \
vtkmsg << "ERROR: In " __FILE__ << ", line " << __LINE__ << "\n" << this->GetClassName() << " (" << this << "): " x <<
"\n\n "
; \
vtkmsg << "ERROR: In " __FILE__ << ", line " << __LINE__ << "\n" << this->GetClassName() << " (" << this << "): " x <<
ends
; \
vtkmsgbuff = vtkmsg.str(); \
vtkmsgbuff[vtkmsg.pcount()] = '\0'; \
MessageBox(NULL,vtkmsgbuff,"Debug Info",MB_ICONERROR | MB_OK); \
delete vtkmsgbuff; vtkObject::BreakOnError();}
MessageBox(NULL,vtkmsgbuff,"Error",MB_ICONERROR | MB_OK); \
vtkmsg.rdbuf()->freeze(0); vtkObject::BreakOnError();}
#else
//
...
...
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