Pulled rust_srv in its own file. Some cleanup, and added varargs to assertion macros.

This commit is contained in:
Michael Bebenita
2010-08-16 14:13:08 -07:00
parent 7e62aa6801
commit b40a9fa787
7 changed files with 168 additions and 130 deletions

View File

@@ -33,7 +33,7 @@ circular_buffer::circular_buffer(rust_dom *dom, size_t unit_sz) :
circular_buffer::~circular_buffer() {
dom->log(rust_log::MEM, "~circular_buffer 0x%" PRIxPTR, this);
I(dom, _buffer);
W(dom, _unread == 0, "~circular_buffer with unread messages.");
W(dom, _unread == 0, "~circular_buffer with %d unread bytes", _unread);
dom->free(_buffer);
}