[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

prom-libc: __assert problem?



I was just going through the prom-libc code and I still think that the
__assert function isn't correct.

Is the __assert function supposed to behave like the assert function from
<assert.h>? In __assert, we pass an assertion (const char *), but it is
never checked to make sure that it is true or false. If we do indeed
need to verify the assertion statement, we will probably require an if
statement in this function. As it stands, my limited testing of the
function has it aborting regardless.

Then again, if this isn't the purpose of this function, please correct
me.

Thinking out loud,

Warren

-- 
Warren A. Layton
GPG Fingerprint: F54C 019D 18BE 6ED8 678D  39D0 21FD D515 BFB8 80A3 
Encrypted E-mail Preferred

Attachment: pgp00000.pgp
Description: PGP signature