Changeset 7633 for trunk/src


Ignore:
Timestamp:
Dec 14, 2001, 10:36:31 PM (24 years ago)
Author:
bird
Message:

Moved Assert stuff to kTypes.h

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:17 bird Exp $
     1/* $Id: kAssert.h,v 1.2 2001-12-14 21:36:31 bird Exp $
    22 *
    33 * kAssert - assert macro(s).
     4 * This file is DEAD now - use kTypes.h instead.
    45 *
    56 * Copyright (c) 1999-2001 knut st. osmundsen (knut.stange.osmundsen@mynd.no)
     
    1314#endif
    1415
    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 
    2016#endif /* _kAssert_h_ */
    2117
  • trunk/src/win32k/kKrnlLib/include/kTypes.h

    r7122 r7633  
    1 /* $Id: kTypes.h,v 1.4 2001-10-19 01:47:27 bird Exp $
     1/* $Id: kTypes.h,v 1.5 2001-12-14 21:36:31 bird Exp $
    22 *
    33 * Common typedefinitions for kLib.
    44 *
    5  * Copyright (c) 2001 knut st. osmundsen (knut.stange.osmundsen@mynd.no)
     5 * Copyright (c) 2001 knut st. osmundsen (kosmunds@csc.com)
    66 *
    77 */
     
    99#ifndef _kTypes_h_
    1010#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
    1149
    1250/*******************************************************************************
     
    134172
    135173
    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))
    140179
    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
     180KBOOL KLIBCALL kAssertMsg(const char *pszExpr, const char *pszFilename, unsigned uLine, const char *pszFunction);
    170181
    171182
    172183
    173184#endif
     185
Note: See TracChangeset for help on using the changeset viewer.