summaryrefslogtreecommitdiffhomepage
path: root/include/LibC++/__abi.h
blob: e1f23107df7e88d8c92af287b6ec29b97ab57833 (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
25
/* ========================================

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

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

#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