chore(style): fix style nits

This commit is contained in:
fallenoak 2025-09-03 22:15:59 -05:00
parent 473a2cb044
commit 5121638c27
No known key found for this signature in database
GPG key ID: 7628F8E61AEA070D
13 changed files with 88 additions and 86 deletions

View file

@ -14,14 +14,12 @@
#define ERROR_INVALID_PARAMETER 0x57
#endif
#ifdef _DEBUG
#ifndef ASSERTIONS_ENABLED
#define ASSERTIONS_ENABLED
#endif
#endif
#if defined(ASSERTIONS_ENABLED)
#define STORM_ASSERT(x) \
if (!(x)) { \
@ -38,7 +36,6 @@
#define STORM_ASSERT_FATAL(x)
#endif
#if defined(NDEBUG)
#define STORM_VALIDATE_BEGIN { bool __storm_result = true
#define STORM_VALIDATE(x) __storm_result &= !!(x); STORM_ASSERT(x)
@ -59,7 +56,6 @@
#define STORM_VALIDATE_END_VOID }
#endif
#define STORM_ERROR_ASSERTION 0x85100000
#define STORM_ERROR_BAD_ARGUMENT 0x85100065
#define STORM_ERROR_GAME_ALREADY_STARTED 0x85100066
@ -96,14 +92,12 @@
#define STORM_ERROR_GAME_TYPE_UNAVAILABLE 0x85100085
#define STORM_ERROR_FATAL_CONDITION 0x85100086
#define SERR_LINECODE_FUNCTION -1
#define SERR_LINECODE_OBJECT -2
#define SERR_LINECODE_HANDLE -3
#define SERR_LINECODE_FILE -4
#define SERR_LINECODE_EXCEPTION -5 // exception handler
[[noreturn]] void SErrDisplayAppFatal(const char* format, ...);
int32_t SErrDisplayError(uint32_t errorcode, const char* filename, int32_t linenumber, const char* description, int32_t recoverable, uint32_t exitcode, uint32_t a7);