assert.3 (4b49587c3dd54aed8eb103d838a89ca79484a9b6) | assert.3 (4c72d794f0e95ea43dff190593060bba9d4f6565) |
---|---|
1.\" Copyright (c) 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 71 unchanged lines hidden (view full) --- 80The assertion: 81.Pp 82.Dl "assert(1 == 0);" 83.Pp 84generates a diagnostic message similar to the following: 85.Pp 86.Dl "Assertion failed: (1 == 0), function main, file assertion.c, line 100." 87.Sh SEE ALSO | 1.\" Copyright (c) 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 71 unchanged lines hidden (view full) --- 80The assertion: 81.Pp 82.Dl "assert(1 == 0);" 83.Pp 84generates a diagnostic message similar to the following: 85.Pp 86.Dl "Assertion failed: (1 == 0), function main, file assertion.c, line 100." 87.Sh SEE ALSO |
88.Xr abort2 2 , |
|
88.Xr abort 3 89.Sh STANDARDS 90The 91.Fn assert 92macro conforms to 93.St -isoC-99 . 94.Sh HISTORY 95An 96.Nm 97macro appeared in 98.At v7 . | 89.Xr abort 3 90.Sh STANDARDS 91The 92.Fn assert 93macro conforms to 94.St -isoC-99 . 95.Sh HISTORY 96An 97.Nm 98macro appeared in 99.At v7 . |