Md4qt

utils.h
Go to the documentation of this file.
1/*
2 SPDX-FileCopyrightText: 2022-2024 Igor Mironchik <igor.mironchik@gmail.com>
3 SPDX-License-Identifier: MIT
4*/
5
6#ifndef MD4QT_MD_UTILS_HPP_INCLUDED
7#define MD4QT_MD_UTILS_HPP_INCLUDED
8
9namespace MD
10{
11
12//
13// DISABLE_COPY
14//
15
16//! Macro for disabling copy.
17#define MD_DISABLE_COPY(Class) \
18 Class(const Class &) = delete; \
19 Class &operator=(const Class &) = delete;
20
21//
22// UNUSED
23//
24
25//! Avoid "unused parameter" warnings.
26#define MD_UNUSED(x) (void)x;
27
28} /* namespace MD */
29
30#endif // MD4QT_MD_UTILS_HPP_INCLUDED
Definition algo.h:17
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Nov 6 2024 12:12:28 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.