?? breaker.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 + -