]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/compute/include/boost/compute/detail/assert_cl_success.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / compute / include / boost / compute / detail / assert_cl_success.hpp
1 //---------------------------------------------------------------------------//
2 // Copyright (c) 2013 Kyle Lutz <kyle.r.lutz@gmail.com>
3 //
4 // Distributed under the Boost Software License, Version 1.0
5 // See accompanying file LICENSE_1_0.txt or copy at
6 // http://www.boost.org/LICENSE_1_0.txt
7 //
8 // See http://boostorg.github.com/compute for more information.
9 //---------------------------------------------------------------------------//
10
11 #ifndef BOOST_COMPUTE_DETAIL_ASSERT_CL_SUCCESS_HPP
12 #define BOOST_COMPUTE_DETAIL_ASSERT_CL_SUCCESS_HPP
13
14 #include <boost/assert.hpp>
15
16 #if defined(BOOST_DISABLE_ASSERTS) || defined(NDEBUG)
17 #define BOOST_COMPUTE_ASSERT_CL_SUCCESS(function) \
18 function
19 #else
20 #define BOOST_COMPUTE_ASSERT_CL_SUCCESS(function) \
21 BOOST_ASSERT(function == CL_SUCCESS)
22 #endif
23
24 #endif // BOOST_COMPUTE_DETAIL_ASSERT_CL_SUCCESS_HPP