NeKernel dev
Loading...
Searching...
No Matches
Detail.h
Go to the documentation of this file.
1/* ========================================
2
3 Copyright (C) 2024-2025, Amlal El Mahrouss, licensed under the Apache 2.0 license.
4
5======================================== */
6
7#pragma once
8
9#ifdef __NEOSKRNL__
10#include <NeKit/Config.h>
11#endif // ifdef __NEOSKRNL__
12
13#define NE_COPY_DELETE(KLASS) \
14 KLASS& operator=(const KLASS&) = delete; \
15 KLASS(const KLASS&) = delete;
16
17#define NE_COPY_DEFAULT(KLASS) \
18 KLASS& operator=(const KLASS&) = default; \
19 KLASS(const KLASS&) = default;
20
21#define NE_MOVE_DELETE(KLASS) \
22 KLASS& operator=(KLASS&&) = delete; \
23 KLASS(KLASS&&) = delete;
24
25#define NE_MOVE_DEFAULT(KLASS) \
26 KLASS& operator=(KLASS&&) = default; \
27 KLASS(KLASS&&) = default;