COMMON: Split assert() for more finetuned crash reporting
This commit is contained in:
parent
1928ac0847
commit
0d7b12306a
1 changed files with 3 additions and 1 deletions
|
@ -175,7 +175,9 @@ public:
|
|||
value_type lastChar() const { return (_size > 0) ? _str[_size - 1] : 0; }
|
||||
|
||||
value_type operator[](int idx) const {
|
||||
assert(_str && idx >= 0 && idx < (int)_size);
|
||||
assert(_str);
|
||||
assert(idx >= 0);
|
||||
assert(idx < (int)_size);
|
||||
return _str[idx];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue