1// [Blend2D]
2// 2D Vector Graphics Powered by a JIT Compiler.
3//
4// [License]
5// Zlib - See LICENSE.md file in the package.
6
7#ifndef BLEND2D_BLVARIANT_P_H
8#define BLEND2D_BLVARIANT_P_H
9
10#include "./blapi-internal_p.h"
11#include "./blvariant.h"
12
13//! \cond INTERNAL
14//! \addtogroup blend2d_internal
15//! \{
16
17// ============================================================================
18// [BLVariant - Internal]
19// ============================================================================
20
21BL_HIDDEN BLResult blVariantImplDelete(BLVariantImpl* impl) noexcept;
22
23static BL_INLINE BLResult blVariantImplRelease(BLVariantImpl* impl) noexcept {
24 if (blImplDecRefAndTest(impl))
25 return blVariantImplDelete(impl);
26 return BL_SUCCESS;
27}
28
29//! \}
30//! \endcond
31
32#endif // BLEND2D_BLVARIANT_P_H
33