- Timestamp:
- Dec 14, 2001, 10:36:31 PM (24 years ago)
- Location:
- trunk/src/win32k/kKrnlLib/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/win32k/kKrnlLib/include/kAssert.h
r6701 r7633 1 /* $Id: kAssert.h,v 1. 1 2001-09-14 01:50:17bird Exp $1 /* $Id: kAssert.h,v 1.2 2001-12-14 21:36:31 bird Exp $ 2 2 * 3 3 * kAssert - assert macro(s). 4 * This file is DEAD now - use kTypes.h instead. 4 5 * 5 6 * Copyright (c) 1999-2001 knut st. osmundsen (knut.stange.osmundsen@mynd.no) … … 13 14 #endif 14 15 15 KBOOL KLIBCALL kAssertMsg(const char *pszExpr, const char *pszFilename, unsigned uLine, const char *pszFunction);16 17 #define kASSERT(expr) \18 ((expr) ? (void)0 : (kAssertMsg(#expr, __FILE__, __LINE__, __FUNCTION__) ? INT3() : (void)0))19 20 16 #endif /* _kAssert_h_ */ 21 17 -
trunk/src/win32k/kKrnlLib/include/kTypes.h
r7122 r7633 1 /* $Id: kTypes.h,v 1. 4 2001-10-19 01:47:27bird Exp $1 /* $Id: kTypes.h,v 1.5 2001-12-14 21:36:31 bird Exp $ 2 2 * 3 3 * Common typedefinitions for kLib. 4 4 * 5 * Copyright (c) 2001 knut st. osmundsen (k nut.stange.osmundsen@mynd.no)5 * Copyright (c) 2001 knut st. osmundsen (kosmunds@csc.com) 6 6 * 7 7 */ … … 9 9 #ifndef _kTypes_h_ 10 10 #define _kTypes_h_ 11 12 13 14 /******************************************************************************* 15 * IBM C Compilers * 16 *******************************************************************************/ 17 #ifdef __IBMC__ 18 19 #define INLINE _Inline 20 #define KLIBCALL _Optlink 21 #ifndef __builtin_h 22 void _Builtin __interrupt( const unsigned int ); 23 #endif 24 #define INT3() __interrupt(3) 25 26 typedef unsigned long KSIZE; 27 typedef unsigned long KBOOL; 28 29 #endif 30 31 32 /******************************************************************************* 33 * IBM C++ Compilers * 34 *******************************************************************************/ 35 #ifdef __IBMCPP__ 36 37 #define INLINE inline 38 #define KLIBCALL _Optlink 39 #ifndef __builtin_h 40 void _Builtin __interrupt( const unsigned int ); 41 #endif 42 #define INT3() __interrupt(3) 43 44 typedef unsigned long KSIZE; 45 typedef unsigned long KBOOL; 46 47 #endif 48 11 49 12 50 /******************************************************************************* … … 134 172 135 173 136 /******************************************************************************* 137 * IBM C Compilers * 138 *******************************************************************************/ 139 #ifdef __IBMC__ 174 /* 175 * Assert macro and function. 176 */ 177 #define kASSERT(expr) \ 178 ((expr) ? (void)0 : (kAssertMsg(#expr, __FILE__, __LINE__, __FUNCTION__) ? INT3() : (void)0)) 140 179 141 #define INLINE _Inline 142 #define KLIBCALL _Optlink 143 #ifndef __builtin_h 144 void _Builtin __interrupt( const unsigned int ); 145 #endif 146 #define INT3() __interrupt(3) 147 148 typedef unsigned long KSIZE; 149 typedef unsigned long KBOOL; 150 151 #endif 152 153 154 /******************************************************************************* 155 * IBM C++ Compilers * 156 *******************************************************************************/ 157 #ifdef __IBMCPP__ 158 159 #define INLINE inline 160 #define KLIBCALL _Optlink 161 #ifndef __builtin_h 162 void _Builtin __interrupt( const unsigned int ); 163 #endif 164 #define INT3() __interrupt(3) 165 166 typedef unsigned long KSIZE; 167 typedef unsigned long KBOOL; 168 169 #endif 180 KBOOL KLIBCALL kAssertMsg(const char *pszExpr, const char *pszFilename, unsigned uLine, const char *pszFunction); 170 181 171 182 172 183 173 184 #endif 185
Note:
See TracChangeset
for help on using the changeset viewer.