1*be7d0ac7SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*be7d0ac7SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*be7d0ac7SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*be7d0ac7SAndrew Rist  * distributed with this work for additional information
6*be7d0ac7SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*be7d0ac7SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*be7d0ac7SAndrew Rist  * "License"); you may not use this file except in compliance
9*be7d0ac7SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*be7d0ac7SAndrew Rist  *
11*be7d0ac7SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*be7d0ac7SAndrew Rist  *
13*be7d0ac7SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*be7d0ac7SAndrew Rist  * software distributed under the License is distributed on an
15*be7d0ac7SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*be7d0ac7SAndrew Rist  * KIND, either express or implied.  See the License for the
17*be7d0ac7SAndrew Rist  * specific language governing permissions and limitations
18*be7d0ac7SAndrew Rist  * under the License.
19*be7d0ac7SAndrew Rist  *
20*be7d0ac7SAndrew Rist  *************************************************************/
21*be7d0ac7SAndrew Rist 
22*be7d0ac7SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef CONNECTIVITY_DIAGNOSE_EX_H
25cdf0e10cSrcweir #define CONNECTIVITY_DIAGNOSE_EX_H
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #if OSL_DEBUG_LEVEL > 0
28cdf0e10cSrcweir     #define OSL_VERIFY_RES( expression, fail_message ) \
29cdf0e10cSrcweir         OSL_ENSURE( expression, fail_message )
30cdf0e10cSrcweir     #define OSL_VERIFY_EQUALS( expression, compare, fail_message ) \
31cdf0e10cSrcweir         OSL_ENSURE( expression == compare, fail_message )
32cdf0e10cSrcweir #else
33cdf0e10cSrcweir     #define OSL_VERIFY_RES( expression, fail_message ) \
34cdf0e10cSrcweir         (void)(expression)
35cdf0e10cSrcweir     #define OSL_VERIFY_EQUALS( expression, compare, fail_message ) \
36cdf0e10cSrcweir         (void)(expression)
37cdf0e10cSrcweir #endif
38cdf0e10cSrcweir 
39cdf0e10cSrcweir #define OSL_UNUSED( expression ) \
40cdf0e10cSrcweir     (void)(expression)
41cdf0e10cSrcweir 
42cdf0e10cSrcweir #endif // CONNECTIVITY_DIAGNOSE_EX_H
43