cxx-qt-lib 0.9.1

Qt types for integrating `cxx-qt` crate with `cxx`
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// clang-format off
// SPDX-FileCopyrightText: 2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
// clang-format on
// SPDX-FileContributor: Andrew Hayzen <andrew.hayzen@kdab.com>
// SPDX-FileContributor: Leon Matthes <leon.matthes@kdab.com>
// SPDX-FileContributor: Matt Aber <matt.aber@kdab.com>
//
// SPDX-License-Identifier: MIT OR Apache-2.0
#pragma once

#define assert_alignment_and_size(TYPE, MEMBERS)                               \
  namespace {                                                                  \
  struct s##TYPE MEMBERS;                                                      \
  }                                                                            \
  static_assert(alignof(s##TYPE) == alignof(TYPE));                            \
  static_assert(sizeof(s##TYPE) == sizeof(TYPE))