summaryrefslogtreecommitdiffhomepage
path: root/src/kernel/NeKit/Vettable.h
blob: 4f3fa44bac2b1ca21344c930274d059556eb796a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// SPDX-License-Identifier: Apache-2.0
// Copyright 2024-2026, Amlal El Mahrouss (amlal@nekernel.org)
// Licensed under the Apache License, Version 2.0 (see LICENSE file)
// Official repository: https://github.com/ne-foss-org/nekernel
#ifndef __NE_KIT_VETTABLE_H__
#define __NE_KIT_VETTABLE_H__

#include <CompilerKit/CompilerKit.h>
#include <NeKit/Config.h>

#define NE_VETTABLE static constexpr BOOL kVettable = YES
#define NE_NON_VETTABLE static constexpr BOOL kVettable = NO

#define NE_UN_VETTABLE static constexpr BOOL kUnvettable = YES

namespace Kernel {
template <class Type>
concept IsVettable = requires(Type) { (Type::kVettable); };

template <class Type>
concept IsUnVettable = requires(Type) { (Type::kUnvettable); };
}  // namespace Kernel

#endif  // !__NE_KIT_VETTABLE_H__