Program Listing for File except.h#

Return to documentation for file (support\except.h)

#ifndef SDV_EXCEPT_H
#define SDV_EXCEPT_H

#include <cstdint>

#ifndef except
#define except struct
#endif

namespace sdv
{
    using exception_id = uint64_t;

    template <typename TExcept>
    constexpr inline exception_id GetExceptionId() noexcept
    {
        // Return the exception ID.
        return TExcept::_id;
    }
}

#endif // !defined SDV_EXCEPT_H