ramdisk.h
来自「一个内存驱动器的源代码」· C头文件 代码 · 共 45 行
H
45 行
// RAMDISK.H -- Declarations for port driver sample
// Copyright (C) 1995 by Walter Oney
// All rights reserved
#ifndef RAMDISK_H
#define RAMDISK_H
#include <debug.h>
///////////////////////////////////////////////////////////////////////////////
// Useful general-purpose definitions
#include <string.h>
#pragma intrinsic(memcmp, memcpy, memset, strcat, strcmp, strcpy, strlen)
#ifdef DEBUG
#define ASSERT(e) if(!(e)){Debug_Printf("Assertion failure in " __FILE__ ", line %d: " #e "\r\n", __LINE__);\
_asm int 1\
}
#else
#define ASSERT(e)
#endif
#ifndef MAKELONG
#define MAKELONG(low, high) ((LONG)(((WORD)(low)) | (((DWORD)((WORD)(high))) << 16)))
#endif
#ifndef FIELDOFFSET
#define FIELDOFFSET(type, field) ((DWORD)(&((type *)0)->field))
#endif
#ifndef arraysize
#define arraysize(p) (sizeof(p)/sizeof((p)[0]))
#endif
///////////////////////////////////////////////////////////////////////////////
// Data structures for this driver
typedef struct tagRAMDISKDDB
{ // RAMDISKDDB
struct DDB; // unnamed structure so we don't have to incessantly qualify names
} RAMDISKDDB, *PRAMDISKDDB;
#endif // RAMDISK_H
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?