summaryrefslogtreecommitdiffhomepage
path: root/include/CoreRuntime/cplusplus/abi/abi.hpp
blob: fe604012adc3b233ff160b43ead48267c49ad6d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 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/nectar

#pragma once

#include <CoreRuntime/cplusplus/core/base_process.hpp>
#include <CoreRuntime/cplusplus/defines.hpp>

__init_decl()

static constexpr int32_t __unreachable_code = 34;

inline void __compilerkit_unreachable(void) {
  std::base_process::signal(__unreachable_code);
  while (true);
}

__fini_decl()