summaryrefslogtreecommitdiffhomepage
path: root/include/LibNectar/__abi.h
blob: ce6424bc62f6fab77f376463be3764640c9d6a03 (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_LIBNECTAR_ABI_H
#define NECTAR_LIBNECTAR_ABI_H

#include <LibNectar/base_process.h>
#include <LibNectar/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_LIBNECTAR_ABI_H