Precommit (#1)

* first commit

* cleanup
This commit is contained in:
tompzf
2025-11-04 13:28:06 +01:00
committed by GitHub
parent dba45dc636
commit 6ed4b1534e
898 changed files with 256340 additions and 0 deletions

31
export/support/except.h Normal file
View File

@@ -0,0 +1,31 @@
#ifndef SDV_EXCEPT_H
#define SDV_EXCEPT_H
#include <cstdint>
#ifndef except
/** Define the except keyword */
#define except struct
#endif
namespace sdv
{
/**
* @brief exception ID type
*/
using exception_id = uint64_t;
/**
* @brief Get the exception ID.
* @tparam TException The exception type
* @return The ID of the exception
*/
template <typename TExcept>
constexpr inline exception_id GetExceptionId() noexcept
{
// Return the exception ID.
return TExcept::_id;
}
}
#endif // !defined SDV_EXCEPT_H