REFACTOR: Completely redid push_back and create

This commit is contained in:
2026-09-16 16:45:09 -04:00
parent 90b494d66b
commit db5f00804e
7 changed files with 285 additions and 208 deletions
+12
View File
@@ -0,0 +1,12 @@
#include <utils.h>
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_VECTOR_NULL] = "Vector :- Given vector is null",
[ERR_MAX_PASSED] = "Max :- Vector Max value is overloaded",
// [ERR_CREATION_FAIL] = "Buffer creation failed",
// [ERR_MALLOC_NULL] = "Malloc Failed to allocate",
};