📄 spsassert.3
字号:
.\" Copyright (c) 1987 Entropic Speech, Inc.; All rights reserved.\" @(#)spsassert.3 1.3 30 Jul 1991 ESI.TH SPSASSERT 3\-ESPSu 30 Jul 1991.ds ]W "\fI\s+4\ze\h'0.05'e\s-4\v'-0.4m'\fP\(*p\v'0.4m'\ Entropic Speech, Inc..SH NAMEspsassert \- ESPS program verification.SH SYNOPSIS.nf.ft B#include <esps/spsassert.h>spsassert(expression,message)char *message.ft.SH DESCRIPTIONThis macro is very helpful in catching programming errors, it is a toolfor defensive programming. The macro is also useful for putting diagnostics into ESPS programs..PPWhen it is executed, if \fIexpression\fR is false,it prints.nf.ta 1i ESPS assertion failed: \fImessage\fR Assertion failed: file \fIxyz\fR, line \fInnn\fR.fion the standard error file and exits.\fIXyz\fR is the source file and \fInnn\fR the source line numberof the \fIassert\fR statement..I Messageis the message passed as the second argument of the macro. The message shouldinclude the name of the program or the function name (if a library function)calling spsassert..PPThe include file \fI<esps/spsassert.h>\fR is included automaticallyin programs that include \fI<esps/esps.h>\fR.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -