summaryrefslogtreecommitdiffhomepage
path: root/include/LibC++/__abi.h
blob: 86e5cdaeb66174cc2de8af927ad7c5cbe94856fd (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
// Copyright 2024-2025, Amlal El Mahrouss (amlal@nekernel.org)
// Licensed under the Apache License, Version 2.0 (See accompanying
// file LICENSE or copy at http://www.apache.org/licenses/LICENSE-2.0)
// Official repository: https://github.com/nekernel-org/nectar

#ifndef NECTAR_LIBCXX_ABI_H
#define NECTAR_LIBCXX_ABI_H

#include <LibC++/base_process.h>
#include <LibC++/defines.h>

__init_decl()

    static constexpr int32_t __unreachable_code = 34;

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

  while (1);
}

__fini_decl()

#endif  // NECTAR_LIBCXX_ABI_H