📄 panic.h
字号:
/** Copyright (c) 1998-2001 by NETsilicon Inc.** This software is copyrighted by and is the sole property of* NETsilicon. All rights, title, ownership, or other interests* in the software remain the property of NETsilicon. This* software may only be used in accordance with the corresponding* license agreement. Any unauthorized use, duplication, transmission,* distribution, or disclosure of this software is expressly forbidden.** This Copyright notice may not be removed or modified without prior* written consent of NETsilicon.** NETsilicon, reserves the right to modify this software* without notice.** NETsilicon* 411 Waverley Oaks Road USA 781.647.1234* Suite 227 http://www.netsilicon.com* Waltham, MA 02452 AmericaSales@netsilicon.com*************************************************************************** $Name: Fusion 6.52 Fusion 6.51 $* $Date: 2001/09/20 10:19:22 $* $Source: M:/psisrc/stack/incl/rcs/panic.h $* $Revision: 1.7 $*************************************************************************** File Description: Panic function declarations and defines***************************************************************************/#ifndef _PANIC_#define _PANIC_#include "config.h"#include "ccdep.h"/* soft panic macros */#ifdef PANIC_Timport void panic(void);typedef struct { u16 pa_magic[4]; int pa_savpri; PANIC_T pa_t;} panic_t;import int setjmp();import PANIC_T * pa_setjmp();import char pa_msg_buf[];#define has_paniced pa_msg_buf[0]#define panic_arg (&_pa_structure)#define paniced (has_paniced ? true : setjmp(pa_setjmp(panic_arg)))#define use_panic auto panic_t _pa_structure#define end_of_panic(pap) ((pap)->pa_magic[0] = 0)#else /*PANIC_T*/#define end_of_panic(a)#define has_paniced false#define panic_arg (panic_t *)0#define panic_t int#define paniced false#define use_panic #endif /*PANIC_T*/#endif /*_PANIC_*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -