Changeset 5127 for trunk/include/misc.h


Ignore:
Timestamp:
Feb 14, 2001, 11:36:18 AM (25 years ago)
Author:
sandervl
Message:

DebugInt3 macro change

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 
    31/*
    42 * Miscellaneous definitions
     
    1715      extern "C" {
    1816#endif
    19 
    20 /* enable support for the _interrupt() statement */
    21 #if (defined(__IBMCPP__) || defined(__IBMC__))
    22 #  include <builtin.h>
    23 #ifdef DEBUG
    24   #define DebugInt3()   _interrupt(3)
    25 #else
    26   #define DebugInt3()
    27 #endif
    28 
    29 #else
    30 #ifdef DEBUG
    31   #define DebugInt3()   _asm int 3;
    32 #else
    33   #define DebugInt3()
    34 #endif
    35 
    36 #endif
    37 
    3817
    3918#ifdef DEBUG
     
    12099void ClosePrivateLogFiles();
    121100
     101/* enable support for the _interrupt() statement */
     102#if (defined(__IBMCPP__) || defined(__IBMC__))
     103#  include <builtin.h>
     104#ifdef DEBUG
     105#ifdef __cplusplus
     106void 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
    122129#ifdef __cplusplus
    123130        }
Note: See TracChangeset for help on using the changeset viewer.