aboutsummaryrefslogtreecommitdiff
path: root/libs/kstd/src/cstdlib.cpp
blob: 8fb5f6393131fb761e80c614302ae117adbed048 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "kstd/bits/os.hpp"

namespace kstd
{

  extern "C"
  {
    [[noreturn]] auto abort() -> void
    {
      if (!kstd::os::abort())
      {
        os::panic("System abort handler returned.");
      }
      __builtin_trap();
    }
  }

}  // namespace kstd