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
Michael Migliore
VTK
Commits
bb7a84fc
Commit
bb7a84fc
authored
Feb 18, 2010
by
Lisa Avila
Browse files
BUG: changed an assert to an error macro to fix problem with the setget test
parent
62cf3225
Changes
1
Hide whitespace changes
Inline
Side-by-side
Rendering/vtkGPUInfoList.cxx
View file @
bb7a84fc
...
...
@@ -22,7 +22,7 @@
#include
<vtkstd/vector>
#include
"vtkGPUInfoListArray.h"
vtkCxxRevisionMacro
(
vtkGPUInfoList
,
"1.
1
"
);
vtkCxxRevisionMacro
(
vtkGPUInfoList
,
"1.
2
"
);
// ----------------------------------------------------------------------------
// Needed when we don't use the vtkStandardNewMacro.
...
...
@@ -49,7 +49,12 @@ bool vtkGPUInfoList::IsProbed()
// \pre probed: IsProbed()
int
vtkGPUInfoList
::
GetNumberOfGPUs
()
{
assert
(
"pre: probed"
&&
this
->
IsProbed
());
if
(
!
this
->
IsProbed
()
)
{
vtkErrorMacro
(
"You must first call the Probe method"
);
return
0
;
}
return
static_cast
<
int
>
(
this
->
Array
->
v
.
size
());
}
...
...
Write
Preview
Supports
Markdown
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