COMMON: Split assert() for more finetuned crash reporting

This commit is contained in:
Eugene Sandulenko 2023-03-03 23:19:20 +01:00
parent 1928ac0847
commit 0d7b12306a
No known key found for this signature in database
GPG key ID: 014D387312D34F08

View file

@ -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];
}