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

📄 breaker.h

📁 伯克利做的SFTP安全文件传输协议
💻 H
字号:
// breaker.h// function stub through which critical event code flow is directed//   for easy breakpoints// copyright SafeTP Development Group, Inc., 2000  Terms of use are as specified in license.txt#ifndef __BREAKER_H#define __BREAKER_Hvoid breaker();// bassert = breaker assert; failure simply calls breaker, which is// a breakpoint in the debugger and is ignored when not in debugger;// useful mainly for places I want to ensure something is true during// initial testing, but after that it's ok if it's falsetemplate <class T>          // allow possibly null pointers, etcinline void bassert(T cond){  if (!cond) {    breaker();  }}// this will call breaker on the first pass, but not any subsequent (unless// it's called MAXINT*2 times...)#define BREAK_FIRST_PASS     \  {                          \    static int passCount=0;  \    bassert(passCount++);    \  } /*no semicolon*/// this is obsolete...void _breaker_assert(char * __cond, char * __file, int __line);  // this will be called on failed assertions instead of _assert  // only if BREAKER_ASSERT is defined (due to a modification to  // assert.h directly)#endif // __BREAKER_H

⌨️ 快捷键说明

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