diff options
| author | Amlal <amlal.elmahrouss@icloud.com> | 2024-11-01 19:41:55 +0100 |
|---|---|---|
| committer | Amlal <amlal.elmahrouss@icloud.com> | 2024-11-01 19:41:55 +0100 |
| commit | 9832d04842245987a1af284866628c5f9bb1fa1b (patch) | |
| tree | 68ce21ad31b164c15d841e85451540292b624348 /dev/LibC++/process_base.h | |
| parent | 65fb4a1abc5ad8b0dd4f2f31199f53a748167f24 (diff) | |
IMP: Fixes and improvements to LibC++, add shell script to generate standard C+ headers.
Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/LibC++/process_base.h')
| -rw-r--r-- | dev/LibC++/process_base.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/dev/LibC++/process_base.h b/dev/LibC++/process_base.h new file mode 100644 index 0000000..9d7c95c --- /dev/null +++ b/dev/LibC++/process_base.h @@ -0,0 +1,21 @@ +/* ------------------------------------------- + + Copyright EL Mahrouss Logic. + +------------------------------------------- */ + +#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 |
