From b95b1fc42d371b08aa82fea8e92aa04b2ef5631f Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Wed, 21 Aug 2024 23:07:43 +0200 Subject: Kernel+DLL: See below. + Document LPC functions and reworked err_bug_check function to return false when everything is OK. + Added native APIs to SCI as well (threading, loader...) + Update ReadMe(s) of the other DLLs. Signed-off-by: Amlal El Mahrouss --- dev/ZKA/Sources/HError.cxx | 34 ---------------------------------- dev/ZKA/Sources/LPC.cxx | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 34 deletions(-) delete mode 100644 dev/ZKA/Sources/HError.cxx create mode 100644 dev/ZKA/Sources/LPC.cxx (limited to 'dev/ZKA/Sources') diff --git a/dev/ZKA/Sources/HError.cxx b/dev/ZKA/Sources/HError.cxx deleted file mode 100644 index 5ccf8aea..00000000 --- a/dev/ZKA/Sources/HError.cxx +++ /dev/null @@ -1,34 +0,0 @@ -/* ------------------------------------------- - - Copyright ZKA Technologies. - -------------------------------------------- */ - -#include -#include - -namespace Kernel -{ - STATIC Bool cRaise = false; - - /// @brief Does a system wide bug check. - /// @param void no params. - /// @return if error-free: true, otherwise false. - Boolean err_bug_check(void) noexcept - { - if (cRaise) - { - ke_stop(RUNTIME_CHECK_BAD_BEHAVIOR); - } - - return true; - } - - /// @brief Tells if we should raise a bug check not. - /// @param void - /// @return void - Void err_bug_check_raise(Void) noexcept - { - cRaise = true; - } -} // namespace Kernel diff --git a/dev/ZKA/Sources/LPC.cxx b/dev/ZKA/Sources/LPC.cxx new file mode 100644 index 00000000..46f621bb --- /dev/null +++ b/dev/ZKA/Sources/LPC.cxx @@ -0,0 +1,34 @@ +/* ------------------------------------------- + + Copyright ZKA Technologies. + +------------------------------------------- */ + +#include +#include + +namespace Kernel +{ + STATIC Bool cRaise = false; + + /// @brief Does a system wide bug check. + /// @param void no params. + /// @return if error-free: false, otherwise true. + Boolean err_bug_check(void) noexcept + { + if (cRaise) + { + ke_stop(RUNTIME_CHECK_BAD_BEHAVIOR); + } + + return false; + } + + /// @brief Tells if we should raise a bug check not. + /// @param void + /// @return void + Void err_bug_check_raise(Void) noexcept + { + cRaise = true; + } +} // namespace Kernel -- cgit v1.2.3