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