From 413994ea3eed976a6fe97f3d6cfeb0c2f453e77f Mon Sep 17 00:00:00 2001 From: Jon Morton Date: Sun, 1 Apr 2012 21:14:16 -0500 Subject: replace assertion macros with plain asserts --- src/rt/rust_port.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/rt/rust_port.cpp') diff --git a/src/rt/rust_port.cpp b/src/rt/rust_port.cpp index 81913d90f3c..3d876585962 100644 --- a/src/rt/rust_port.cpp +++ b/src/rt/rust_port.cpp @@ -51,7 +51,7 @@ void rust_port::end_detach() { // Just take the lock to make sure that the thread that signaled // the detach_cond isn't still holding it scoped_lock with(ref_lock); - I(task->sched_loop, ref_count == 0); + assert(ref_count == 0); } void rust_port::send(void *sptr) { @@ -61,8 +61,8 @@ void rust_port::send(void *sptr) { buffer.enqueue(sptr); - A(kernel, !buffer.is_empty(), - "rust_chan::transmit with nothing to send."); + assert(!buffer.is_empty() && + "rust_chan::transmit with nothing to send."); if (task->blocked_on(this)) { KLOG(kernel, comm, "dequeued in rendezvous_ptr"); -- cgit 1.4.1-3-g733a5