FEAT: Implemented a more streamlined error handler.

REFACTOR: Completely rewrote insert and cleaned up names and redundant code.
This commit is contained in:
2026-09-18 11:42:40 -04:00
parent f1d5962442
commit f51a03c476
5 changed files with 285 additions and 296 deletions
+3 -1
View File
@@ -4,9 +4,11 @@ const char* error_messages[] = {
[ERR_ALLOC_FAIL] = "Calloc :- Failed to allocate",
[ERR_BUF_NULL] = "Buffer :- NULL",
[ERR_BAD_TYPE] = "Type :- Does not match vector type",
[ERR_INVALID_SIZE] = "Size :- Size is 0 or invalid",
[ERR_SIZE_ZERO] = "Size :- Size is or is less than 0 or invalid",
[ERR_VECTOR_NULL] = "Vector :- Given vector is null",
[ERR_MAX_PASSED] = "Max :- Vector Max value is overloaded",
[ERR_OUT_OF_BOUNDS] = "Bounds:- Value is out of bounds",
// [ERR_CREATION_FAIL] = "Buffer creation failed",
// [ERR_MALLOC_NULL] = "Malloc Failed to allocate",
};