diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-08-16 19:55:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-16 19:55:22 +0200 |
| commit | 5467549fa5d656afd0c6bf12c6c3928a8c919591 (patch) | |
| tree | 755d6bf288f0bd474641d9ace1de290991feffee /dev/LibC++/base_process.h | |
| parent | 433bb5ef102b2bfa0049468be00d63011da8b973 (diff) | |
| parent | 0c14f7cff6535d110bc95a7699db043d8aa9aa1a (diff) | |
Merge pull request #9 from nekernel-org/dev
v0.0.3
Diffstat (limited to 'dev/LibC++/base_process.h')
| -rw-r--r-- | dev/LibC++/base_process.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/dev/LibC++/base_process.h b/dev/LibC++/base_process.h index 757e592..126ac60 100644 --- a/dev/LibC++/base_process.h +++ b/dev/LibC++/base_process.h @@ -6,15 +6,23 @@ #pragma once +#include <LibC++/defines.h> + /// @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); +extern "C" int exit_(int code); +extern "C" int signal_(int code); /// @brief Standard C++ namespace namespace std::base_process { +inline int signal(int code) { + signal_(code); + return -1; +} + inline int exit(int code) { - exit(code); + exit_(code); return -1; } } // namespace std::base_process |
