summaryrefslogtreecommitdiff
path: root/src/BStream.cc
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2011-12-11 23:37:19 -0800
committerPixel <pixel@nobis-crew.org>2011-12-11 23:37:23 -0800
commit600e7af66ad53f83fe61a907161e8b295603b83e (patch)
tree583d5473bd1b68366e39b3b7073d51b09e99f0bb /src/BStream.cc
parent69efca1a157245b35cd80a09718f45b30412dcea (diff)
Introducing EAssert for 'Execution Assert', which won't stop the application, and will replace a bunch of RAssert around the code.
Diffstat (limited to 'src/BStream.cc')
-rw-r--r--src/BStream.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/BStream.cc b/src/BStream.cc
index cd7a121..9420459 100644
--- a/src/BStream.cc
+++ b/src/BStream.cc
@@ -52,7 +52,7 @@ ssize_t Balau::BStream::read(void * _buf, size_t count) throw (Balau::GeneralExc
m_cursor = 0;
IAssert(m_availBytes == 0, "At this point, our internal buffer should be empty, but it's not: %lu", m_availBytes);
ssize_t r = m_h->read(m_buffer, s_blockSize);
- RAssert(r >= 0, "BStream got an error while reading: %li", r);
+ EAssert(r >= 0, "BStream got an error while reading: %li", r);
m_availBytes = r;
if (toCopy > m_availBytes)
@@ -74,7 +74,7 @@ int Balau::BStream::peekNextByte() {
ssize_t r = read(&b, 1);
if (!r)
return -1;
- RAssert(r == 1, "We asked for one byte, yet we got %li", r);
+ EAssert(r == 1, "We asked for one byte, yet we got %li", r);
IAssert(m_cursor > 0, "m_cursor is %li", m_cursor);
IAssert(m_availBytes < s_blockSize, "m_availBytes = %li; s_blockSize = %i", m_availBytes, s_blockSize);
m_cursor--;