liberror/doc/LIBERROR_ASSERT.3

23 lines
689 B
Groff
Executable File

.TH "LIBERROR_ASSERT" "cware" "May 13, 2023" "" "C-Ware Manuals"
.SH NAME
LIBEROR_ASSERT - report an error message to the stderr
.br
.SH SYNOPSIS
\fB#define LIBERROR_ASSERT(\fR\fIexpression\fR\fB, \fR\fItype\fR\fB, \fR\fImessage\fB, \fIfunction\fR\fB);\fR
.br
.SH DESCRIPTION
The LIBERROR_ASSERT macro will raise a runtime error of the type \fItype\fR
.br
if the expression \fIexpression\fR evaluates to false. The error will contain a
.br
message describing what happened, as well as the function that the
.br
error occurred in. The error will be written to the stderr in the
.br
format described in \fBliberror\fR(cware).
.br
.br
.SH SEE ALSO
\fBcware\fR(cware), \fBliberror\fR(cware)