|
|
1.1 ! root 1: .TH ASSERT 3X ! 2: .CT 2 debug_tune ! 3: .SH NAME ! 4: assert \(mi assertion checking ! 5: .SH SYNOPSIS ! 6: .B #include <assert.h> ! 7: .PP ! 8: .B void assert(expression); ! 9: .SH DESCRIPTION ! 10: .PP ! 11: .I Assert ! 12: is a macro that indicates ! 13: .I expression ! 14: is expected to be nonzero at this point in the program. ! 15: It causes an ! 16: .IR abort (3) ! 17: with a diagnostic comment on the standard output ! 18: when ! 19: .I expression ! 20: is zero. ! 21: Compiling with the ! 22: .IR cc (1) ! 23: option ! 24: .B -DNDEBUG ! 25: effectively makes the expression always nonzero. ! 26: .SH DIAGNOSTICS ! 27: `Assertion failed: file ! 28: .I f ! 29: line ! 30: .I n', ! 31: where ! 32: .I f ! 33: is the source file and ! 34: .I n ! 35: the source line number ! 36: of the ! 37: .I assert ! 38: statement.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.