chore(error): add error codes and fix macro accuracy

This commit is contained in:
Adam Heinermann 2025-01-11 11:19:27 -08:00 committed by fallenoak
parent 0854138653
commit 6397c2fa17
6 changed files with 165 additions and 54 deletions

View file

@ -3,8 +3,9 @@
#include <cstring>
void SARC4PrepareKey(const void* data, uint32_t len, SARC4Key* key) {
STORM_ASSERT(data);
STORM_VALIDATE(data, ERROR_INVALID_PARAMETER);
STORM_VALIDATE_BEGIN;
STORM_VALIDATE(data);
STORM_VALIDATE_END_VOID;
key->x = 0;
key->y = 0;