Changeset 5127 for trunk/include/misc.h
- Timestamp:
- Feb 14, 2001, 11:36:18 AM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/misc.h
r4263 r5127 1 /* $Id: misc.h,v 1.18 2000-09-15 13:23:23 sandervl Exp $ */2 3 1 /* 4 2 * Miscellaneous definitions … … 17 15 extern "C" { 18 16 #endif 19 20 /* enable support for the _interrupt() statement */21 #if (defined(__IBMCPP__) || defined(__IBMC__))22 # include <builtin.h>23 #ifdef DEBUG24 #define DebugInt3() _interrupt(3)25 #else26 #define DebugInt3()27 #endif28 29 #else30 #ifdef DEBUG31 #define DebugInt3() _asm int 3;32 #else33 #define DebugInt3()34 #endif35 36 #endif37 38 17 39 18 #ifdef DEBUG … … 120 99 void ClosePrivateLogFiles(); 121 100 101 /* enable support for the _interrupt() statement */ 102 #if (defined(__IBMCPP__) || defined(__IBMC__)) 103 # include <builtin.h> 104 #ifdef DEBUG 105 #ifdef __cplusplus 106 void inline BreakPoint(char *szFile, char *szFunction) 107 { 108 dprintf(("BREAKPOINT %s %s", szFile, szFunction)); 109 _interrupt(3); 110 } 111 #define DebugInt3() BreakPoint(__FILE__, __FUNCTION__) 112 113 #else 114 #define DebugInt3() _interrupt(3) 115 #endif 116 #else 117 #define DebugInt3() 118 #endif 119 120 #else 121 #ifdef DEBUG 122 #define DebugInt3() _asm int 3; 123 #else 124 #define DebugInt3() 125 #endif 126 127 #endif 128 122 129 #ifdef __cplusplus 123 130 }
Note:
See TracChangeset
for help on using the changeset viewer.