blob: 40e1df0e9e001d3e8e1d1d54dca1878b16c32aa7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// 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 NEKIT_VARIANT_INL
#define NEKIT_VARIANT_INL
template <typename T>
inline T* Kernel::Variant::As() {
return reinterpret_cast<T*>(fPtr);
}
#endif
|