summaryrefslogtreecommitdiff
path: root/src/Input.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/Input.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/Input.cc')
-rw-r--r--src/Input.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Input.cc b/src/Input.cc
index 48b32ea..14aed91 100644
--- a/src/Input.cc
+++ b/src/Input.cc
@@ -55,7 +55,7 @@ Balau::Input::Input(const char * fname) throw (GeneralException) : m_fd(-1), m_s
cbResults_t cbResults;
eio_req * r = eio_open(fname, O_RDONLY, 0, 0, eioDone, &cbResults);
- RAssert(r != NULL, "eio_open returned a NULL eio_req");
+ EAssert(r != NULL, "eio_open returned a NULL eio_req");
Task::yield(&cbResults.evt);
if (cbResults.result < 0) {
char str[4096];
@@ -70,7 +70,7 @@ Balau::Input::Input(const char * fname) throw (GeneralException) : m_fd(-1), m_s
cbStatsResults_t cbStatsResults;
r = eio_fstat(m_fd, 0, eioStatsDone, &cbStatsResults);
- RAssert(r != NULL, "eio_fstat returned a NULL eio_req");
+ EAssert(r != NULL, "eio_fstat returned a NULL eio_req");
Task::yield(&cbStatsResults.evt);
if (cbStatsResults.result == 0) {
m_size = cbStatsResults.statdata.st_size;
@@ -83,7 +83,7 @@ void Balau::Input::close() throw (GeneralException) {
return;
cbResults_t cbResults;
eio_req * r = eio_close(m_fd, 0, eioDone, &cbResults);
- RAssert(r != NULL, "eio_close returned a NULL eio_req");
+ EAssert(r != NULL, "eio_close returned a NULL eio_req");
m_fd = -1;
Task::yield(&cbResults.evt);
if (cbResults.result < 0) {
@@ -98,7 +98,7 @@ void Balau::Input::close() throw (GeneralException) {
ssize_t Balau::Input::read(void * buf, size_t count) throw (GeneralException) {
cbResults_t cbResults;
eio_req * r = eio_read(m_fd, buf, count, getROffset(), 0, eioDone, &cbResults);
- RAssert(r != NULL, "eio_read returned a NULL eio_req");
+ EAssert(r != NULL, "eio_read returned a NULL eio_req");
Task::yield(&cbResults.evt);
if (cbResults.result > 0) {
rseek(cbResults.result, SEEK_CUR);