From a133c71c22b8f9576bfc667f000c7c764d4505c8 Mon Sep 17 00:00:00 2001 From: Amlal Date: Tue, 21 Jan 2025 20:23:15 +0100 Subject: ADD: NeKernel Toolchain 0.0.9 (Beta Release) Signed-off-by: Amlal --- dev/LibC++/process_base.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 dev/LibC++/process_base.h (limited to 'dev/LibC++/process_base.h') diff --git a/dev/LibC++/process_base.h b/dev/LibC++/process_base.h new file mode 100644 index 0000000..35e551b --- /dev/null +++ b/dev/LibC++/process_base.h @@ -0,0 +1,21 @@ +/* ------------------------------------------- + + Copyright (C) 2024 Amlal EL Mahrouss, all rights reserved. + +------------------------------------------- */ + +#pragma once + +/// @brief CRT exit, with exit code (!!! exits all threads. !!!) +/// @param code the exit code. +/// @return the return > 0 for non successful. +extern "C" int exit(int code); + +/// @brief Standard C++ namespace +namespace std::process_base +{ + inline int exit(int code) + { + exit(code); + } +} // namespace std::process_base -- cgit v1.2.3