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

📄 check.h

📁 实现了poll/epoll/devpoll等C++封装
💻 H
字号:
#ifndef CHECK_h#define CHECK_h/**-------------------------------------------------------------------------- @name CHECK.h - Helper functions for unit self-tests. Each macro makes a particular check, and if the check fails, an error message containing the filename and line number is printed to stdout, and the program is terminated with status 1.--------------------------------------------------------------------------*/#ifdef __cplusplusextern "C" {#endif/** Check two integers to make sure they are equal. */#define CHECK(d, e) check((int)(d), (int)(e), __FILE__,  __LINE__)void check(int d, int e, const char * file, int line);/** Check two integers to make sure they are not equal. */#define CHECKNE(d, e) checkne((int)(d), (int)(e), __FILE__,  __LINE__)void checkne(int d, int e, const char * file, int line);#ifdef __cplusplus}#endif#endif

⌨️ 快捷键说明

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