feat(storm): reorganized error library, assertions are now more detailed across different platforms; added new macros STORM_VALIDATE_STRING and STORM_PANIC

This commit is contained in:
phaneron 2024-08-30 18:04:21 -04:00
parent d149081f4e
commit 4f32840fdf
13 changed files with 164 additions and 103 deletions

16
storm/error/Codes.hpp Normal file
View file

@ -0,0 +1,16 @@
#ifndef STORM_ERROR_CODES_HPP
#define STORM_ERROR_CODES_HPP
#if defined(WHOA_SYSTEM_WIN)
#include "storm/error/win/Codes.hpp"
#endif
#if defined(WHOA_SYSTEM_MAC) || defined(WHOA_SYSTEM_LINUX)
#include "storm/error/unix/Codes.hpp"
#endif
#include "storm/error/Macro.hpp"
#define STORM_ERROR_APPLICATION_FATAL STORM_ERROR(0x84)
#endif