Re: [Code] mail system

From: Daniel Koepke (dkoepke@california.com)
Date: 01/21/97


On Wed, 22 Jan 1997, Mehdi Keddache wrote:

> saying that ASSERTION FAILED: mail.c line 208
> 208:  assert(sizeof(header_block_type) == BLOCK_SIZE);
> Anyone has a clue about the consequences? I'd like to know what assert
> does but you don't have to answer that.

Tests if an assertion is false, and if so, aborts.  Similar to:

  if (sizeof(header_block_type) != BLOCK_SIZE) {
    fprintf(stdout, "ASSERTION FAILED: mail.c line 208\n");
    abort();
  }

I dunno the reasoning for the assert() in the stock code.


--
Daniel Koepke
dkoepke@california.com
Forgive me father, for I am sin.


+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/18/00 PST