⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 utilities.h

📁 用VC++编译的13818-5 MPEG2系统层分析代码
💻 H
字号:
#include "Events.H"#include "io.h"
#include <malloc.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <io.h>
#include <stdio.h>
extern "C"{#include <stdio.h>void exit (int);  }// useful thingstypedef int Boolean;#define FALSE 0#define TRUE 1// globalsextern int PRINTFLAG;extern EventManager* EM;// system functionsvoid sys_error (char*);void sys_halt (char*);void sys_message (char*);/*	@(#)assert.h 1.7 88/02/07 SMI; from UCB 4.2 85/01/21	*/#ifndef NDEBUG#define _assert(ex)	{if (!(ex)){(void)fprintf(stderr,"Assertion(ex) failed: file \"%s\", line %d\n", __FILE__, __LINE__);sys_halt("Bad Assertion");}}#define assert(ex)	_assert(ex)#else#define _assert(ex)#define assert(ex)#endif/*  DOCUMENTATION Three system print messages are supported:  void sys_error (char*);  void sys_halt (char*);  void sys_message (char*);    sys_error and sys_halt will terminate the program, sys_message    will print a message.  PRINTFLAG controls the printing of sys_messages and sys_errors.  If PRINTFLAG is FALSE, then messages are suppressed.  The default is TRUE. EM can be set to the EventManager.  If it is set then a Termination event is triggered before sys_halt terminated the application. assert is used in a few places to test assertions.*/

⌨️ 快捷键说明

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