VR-Forces Developer's Guide
Home
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrvUtil
DtContractAssert.h
Go to the documentation of this file.
1
/******************************************************************************
2
* Copyright (c) 2026 MAK Technologies, Inc.
3
* All rights reserved.
4
******************************************************************************/
5
29
30
#pragma once
31
32
#ifdef VRV_CONTRACT_ASSERT_ENABLED
33
34
# ifdef _WIN32
35
# define VRV_CONTRACT_ASSERT_BREAK() __debugbreak()
36
# else
37
# include <signal.h>
38
# define VRV_CONTRACT_ASSERT_BREAK() raise(SIGTRAP)
39
# endif
40
44
# define VRV_CONTRACT_ASSERT(expr) \
45
do { if (!(expr)) { VRV_CONTRACT_ASSERT_BREAK(); } } while (0)
46
47
#else
48
50
# define VRV_CONTRACT_ASSERT(expr) ((void)0)
51
52
#endif
Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (
www.mak.com
)