1 // Copyright (C) 2018-2019 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
7 #include <details/ie_exception.hpp>
15 #define VPU_COMBINE_HELPER2(X, Y) X##Y
16 #define VPU_COMBINE_HELPER3(X, Y, Z) X##Y##Z
18 #define VPU_COMBINE(X, Y) VPU_COMBINE_HELPER2(X, Y)
19 #define VPU_COMBINE3(X, Y, Z) VPU_COMBINE_HELPER3(X, Y, Z)
25 #define VPU_THROW_EXCEPTION \
26 THROW_IE_EXCEPTION << "[VPU] "
28 #define VPU_THROW_UNLESS(EXPRESSION) \
29 if (!(EXPRESSION)) VPU_THROW_EXCEPTION << "AssertionFailed: " << #EXPRESSION // NOLINT
32 // Packed structure declaration
36 # define VPU_PACKED(body) __pragma(pack(push, 1)) struct body __pragma(pack(pop))
37 #elif defined(__GNUC__)
38 # define VPU_PACKED(body) struct __attribute__((packed)) body