summaryrefslogtreecommitdiffhomepage
path: root/include/LibC++/__abi.h
blob: 80a0398f9335dd9b80c8b02e2bc3b95a476d2f55 (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++/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()