1 /*========================== begin_copyright_notice ============================
2 
3 Copyright (C) 2019-2021 Intel Corporation
4 
5 SPDX-License-Identifier: MIT
6 
7 ============================= end_copyright_notice ===========================*/
8 
9 #pragma once
10 
11 #ifdef __cplusplus
12 
13 /*****************************************************************************\
14 MACRO: ASSERT
15 \*****************************************************************************/
16 #ifndef ASSERT
17 #define ASSERT( expr )
18 #endif
19 
20 /*****************************************************************************\
21 MACRO: DPF
22 PURPOSE: Debug Print function
23 \*****************************************************************************/
24 #ifndef DPF
25 #define DPF( debugLevel, message, ...)
26 #endif
27 
28 /*****************************************************************************\
29 MACRO: GFXDBG_STDLIB
30 PURPOSE: Special Debug Print flag for iSTD classes
31 \*****************************************************************************/
32 #define GFXDBG_STDLIB   (0x00001000)
33 
34 
35 /*****************************************************************************\
36 MACRO: NODEFAULT
37 PURPOSE: The use of __assume(0) tells the optimizer that the default case
38 cannot be reached. As a result, the compiler does not generate code to test
39 whether p has a value not represented in a case statement. Note that
40 __assume(0) must be the first statement in the body of the default case for
41 this to work.
42 \*****************************************************************************/
43 #ifndef NODEFAULT
44 #ifdef _MSC_VER
45 #define NODEFAULT   __assume(0)
46 #else
47 #define NODEFAULT
48 #endif // _MSC_VER
49 #endif // NODEFAULT
50 
51 #endif // __cplusplus
52