diff options
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 |
