summaryrefslogtreecommitdiffhomepage
path: root/include/LibC++/__abi.h
blob: 6b4b05889a72f9a4189c42f094552d2cf67bc68e (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) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license.

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

#pragma once

#include <LibC++/defines.h>
#include <LibC++/base_process.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()