VirtualBox

Changeset 22075 in vbox for trunk/src/VBox/Runtime/include


Ignore:
Timestamp:
Aug 7, 2009 3:37:07 PM (15 years ago)
Author:
vboxsync
Message:

internal/iprt.h: don't enable RT_MORE_STRICT on windows yet, it's likely to blow up in memobj.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/include/internal/iprt.h

    r22071 r22075  
    5555/** @def RT_MORE_STRICT
    5656 * Enables more assertions in IPRT.  */
    57 #if !defined(RT_MORE_STRICT) && (defined(DEBUG) || defined(RT_STRICT) || defined(DOXYGEN_RUNNING))
     57#if !defined(RT_MORE_STRICT) && (defined(DEBUG) || defined(RT_STRICT) || defined(DOXYGEN_RUNNING)) && !defined(RT_OS_WINDOWS) /** @todo enable on windows after testing */
    5858# define RT_MORE_STRICT
    59 #endif 
     59#endif
    6060
    6161/** @def RT_ASSERT_PREEMPT_CPUID_VAR
    62  * Partner to RT_ASSERT_PREEMPT_CPUID_VAR. Declares and initializes a variable 
    63  * idAssertCpu to NIL_RTCPUID if preemption is enabled and to RTMpCpuId if 
    64  * disabled.  When RT_MORE_STRICT isn't defined it declares an uninitialized 
    65  * dummy variable. 
    66  * 
    67  * Requires iprt/mp.h and iprt/asm.h. 
    68  */ 
     62 * Partner to RT_ASSERT_PREEMPT_CPUID_VAR. Declares and initializes a variable
     63 * idAssertCpu to NIL_RTCPUID if preemption is enabled and to RTMpCpuId if
     64 * disabled.  When RT_MORE_STRICT isn't defined it declares an uninitialized
     65 * dummy variable.
     66 *
     67 * Requires iprt/mp.h and iprt/asm.h.
     68 */
    6969/** @def RT_ASSERT_PREEMPT_CPUID
    70  * Asserts that we didn't change CPU since RT_ASSERT_PREEMPT_CPUID_VAR if 
    71  * preemption is disabled.  Will also detect changes in preemption 
    72  * disable/enable status.  This is a noop when RT_MORE_STRICT isn't defined. */ 
     70 * Asserts that we didn't change CPU since RT_ASSERT_PREEMPT_CPUID_VAR if
     71 * preemption is disabled.  Will also detect changes in preemption
     72 * disable/enable status.  This is a noop when RT_MORE_STRICT isn't defined. */
    7373#ifdef RT_MORE_STRICT
    7474# define RT_ASSERT_PREEMPT_CPUID_VAR() \
     
    8080        AssertMsg(idAssertCpu == idAssertCpuNow,  ("%#x, %#x\n", idAssertCpu, idAssertCpuNow)); \
    8181   } while (0)
    82                                                  
     82
    8383#else
    8484# define RT_ASSERT_PREEMPT_CPUID_VAR()  RTCPUID idAssertCpuDummy
    8585# define RT_ASSERT_PREEMPT_CPUID()      NOREF(idAssertCpuDummy)
    86 #endif 
     86#endif
    8787
    8888/** @def RT_ASSERT_INTS_ON
     
    9292#else
    9393# define RT_ASSERT_INTS_ON()            do { } while (0)
    94 #endif 
     94#endif
    9595
    9696/** @def RT_ASSERT_PREEMPTIBLE
    97  * Asserts that preemption hasn't been disabled (using 
    98  * RTThreadPreemptDisable) when RT_MORE_STRICT is defined. */ 
     97 * Asserts that preemption hasn't been disabled (using
     98 * RTThreadPreemptDisable) when RT_MORE_STRICT is defined. */
    9999#ifdef RT_MORE_STRICT
    100100# define RT_ASSERT_PREEMPTIBLE()        Assert(RTThreadPreemptIsEnabled(NIL_RTTHREAD))
    101101#else
    102102# define RT_ASSERT_PREEMPTIBLE()        do { } while (0)
    103 #endif 
     103#endif
    104104
    105105#endif
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette