spsassert.h

来自「speech signal process tools」· C头文件 代码 · 共 43 行

H
43
字号
/* * @(#)spsassert.h	1.7 7/23/96 ESI * This material contains proprietary software of Entropic Speech, Inc. * Any reproduction, distribution, or publication without the prior * written permission of Entropic Speech, Inc. is strictly prohibited. * Any public distribution of copies of this work authorized in writing by * Entropic Speech, Inc. must bear the notice * *    "Copyright (c) 1987-1990 Entropic Speech, Inc. *     Copyright (c) 1990-1995 Entropic Research Laboratory, Inc. *                   All rights reserved." * * Written by:  John Shore * * SPS version of assert macro; prints a message as well */#ifndef spsassert_H#define spsassert_H#ifdef __cplusplusextern "C" {#endif#include <esps/esps.h>#include <assert.h>#ifndef lint#define _spsassert(ex,ms) {if (!(ex)){fprintf(stderr,"SPS assertion failed: %s\n",(ms));assert(0);exit(1);}}#define spsassert(ex,ms) {if (!(ex)){fprintf(stderr,"SPS assertion failed: %s\n",(ms));assert(0);exit(1);}}#else#define _spsassert(ex,ms) ;#define spsassert(ex,ms) ;#endif#ifdef __cplusplus}#endif#endif /* spsassert_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?