summaryrefslogtreecommitdiffhomepage
path: root/src/kernel/NeKit/Vettable.h
blob: f59d803c0a1c44d9776ad333a576510888705427 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

/* ========================================

  Copyright (C) 2025, Amlal El Mahrouss, licensed under the Apache 2.0 license.

======================================== */

#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

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

#endif  // !__NE_KIT_VETTABLE_H__