This repository has been archived on 2025-02-26. You can view files and clone it, but cannot push or open issues or pull requests.
hilbert-os/euler/source/entry.cpp

17 lines
264 B
C++

#include <euler/syscall.hpp>
#include <cstdlib>
#include <string>
int main();
extern "C" [[noreturn]] void _start() {
//TODO: call static initializers
int exit_code = main();
//TODO: call at_exit stuff
euler::syscall::end_this_process(exit_code);
}