comment out perf-reducing nasserts

This commit is contained in:
cxgeorge 2001-04-04 22:31:54 +00:00
parent 11d54502a2
commit a8a4d8199f
5 changed files with 18 additions and 18 deletions

View File

@ -194,8 +194,8 @@ get_col2(int col) const {
////////////////////////////////////////////////////////////////////
INLINE FLOATTYPE &FLOATNAME(LMatrix3)::
operator () (int row, int col) {
nassertr(row >= 0 && row < 3, _data[0]);
nassertr(col >= 0 && col < 3, _data[0]);
// nassertr(row >= 0 && row < 3, _data[0]);
// nassertr(col >= 0 && col < 3, _data[0]);
return _data[row * 3 + col];
}
@ -206,8 +206,8 @@ operator () (int row, int col) {
////////////////////////////////////////////////////////////////////
INLINE FLOATTYPE FLOATNAME(LMatrix3)::
operator () (int row, int col) const {
nassertr(row >= 0 && row < 3, 0.0);
nassertr(col >= 0 && col < 3, 0.0);
// nassertr(row >= 0 && row < 3, 0.0);
// nassertr(col >= 0 && col < 3, 0.0);
return _data[row * 3 + col];
}
@ -232,8 +232,8 @@ is_nan() const {
////////////////////////////////////////////////////////////////////
INLINE FLOATTYPE FLOATNAME(LMatrix3)::
get_cell(int row, int col) const {
nassertr(row >= 0 && row < 3, 0.0);
nassertr(col >= 0 && col < 3, 0.0);
// nassertr(row >= 0 && row < 3, 0.0);
// nassertr(col >= 0 && col < 3, 0.0);
return _data[row * 3 + col];
}
@ -244,8 +244,8 @@ get_cell(int row, int col) const {
////////////////////////////////////////////////////////////////////
INLINE void FLOATNAME(LMatrix3)::
set_cell(int row, int col, FLOATTYPE value) {
nassertv(row >= 0 && row < 3);
nassertv(col >= 0 && col < 3);
// nassertv(row >= 0 && row < 3);
// nassertv(col >= 0 && col < 3);
_data[row * 3 + col] = value;
}

View File

@ -336,8 +336,8 @@ is_nan() const {
////////////////////////////////////////////////////////////////////
INLINE FLOATTYPE FLOATNAME(LMatrix4)::
get_cell(int row, int col) const {
nassertr(row >= 0 && row < 4, 0.0);
nassertr(col >= 0 && col < 4, 0.0);
// nassertr(row >= 0 && row < 4, 0.0);
// nassertr(col >= 0 && col < 4, 0.0);
return _data[row * 4 + col];
}
@ -348,8 +348,8 @@ get_cell(int row, int col) const {
////////////////////////////////////////////////////////////////////
INLINE void FLOATNAME(LMatrix4)::
set_cell(int row, int col, FLOATTYPE value) {
nassertv(row >= 0 && row < 4);
nassertv(col >= 0 && col < 4);
// nassertv(row >= 0 && row < 4);
// nassertv(col >= 0 && col < 4);
_data[row * 4 + col] = value;
}

View File

@ -144,7 +144,7 @@ is_nan() const {
////////////////////////////////////////////////////////////////////
INLINE FLOATTYPE FLOATNAME(LVecBase2)::
get_cell(int i) const {
nassertr(i >= 0 && i < 2, 0);
// nassertr(i >= 0 && i < 2, 0);
return _data[i];
}
@ -175,7 +175,7 @@ get_y() const {
////////////////////////////////////////////////////////////////////
INLINE void FLOATNAME(LVecBase2)::
set_cell(int i, FLOATTYPE value) {
nassertv(i >= 0 && i < 2);
// nassertv(i >= 0 && i < 2);
_data[i] = value;
}

View File

@ -153,7 +153,7 @@ is_nan() const {
////////////////////////////////////////////////////////////////////
INLINE FLOATTYPE FLOATNAME(LVecBase3)::
get_cell(int i) const {
nassertr(i >= 0 && i < 3, 0);
// nassertr(i >= 0 && i < 3, 0);
return _data[i];
}
@ -194,7 +194,7 @@ get_z() const {
////////////////////////////////////////////////////////////////////
INLINE void FLOATNAME(LVecBase3)::
set_cell(int i, FLOATTYPE value) {
nassertv(i >= 0 && i < 3);
// nassertv(i >= 0 && i < 3);
_data[i] = value;
}

View File

@ -164,7 +164,7 @@ is_nan() const {
////////////////////////////////////////////////////////////////////
INLINE FLOATTYPE FLOATNAME(LVecBase4)::
get_cell(int i) const {
nassertr(i >= 0 && i < 4, 0);
// nassertr(i >= 0 && i < 4, 0);
return _data[i];
}
@ -215,7 +215,7 @@ get_w() const {
////////////////////////////////////////////////////////////////////
INLINE void FLOATNAME(LVecBase4)::
set_cell(int i, FLOATTYPE value) {
nassertv(i >= 0 && i < 4);
// nassertv(i >= 0 && i < 4);
_data[i] = value;
}