Refactor project

Crealned up some TODOs, FIXMEs etc. Added better error handling. Looks
better, feels better.
This commit is contained in:
Piotr Krygier committed 2023-10-10 10:46:12 +02:00
1 parent bd4dd74881
commit 42dc4d6fcd
29 files changed
+750 -645

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
/**
* @file rse_errors_common.h
* @author Piotr Krygier (everyonecancode@gmail.com)
* @brief Common error messages, that can appear in any module
* @version 0.1
* @date 2023-10-05
*
* @copyright Copyright (c) 2023
*
*/
#ifndef RSE_ERRORS_COMMON_H
/* Macro for checking status of function execution in initVulkan. Created to avoid writing boilerplate code */
#define STATUS_CHECK(FUNC) \
status = FUNC; \
if (RSE_ERROR_NO_ERROR != status) { \
return status; \
}
#define RSE_COMMON_MODULE_ID 0x0100U
enum rse_common_error_t
{
RSE_ERROR_NO_ERROR = RSE_COMMON_MODULE_ID,
RSE_COMMON_ERROR_MALLLOC_FAILED,
};
#define RSE_ERRORS_COMMON_H
#endif /* RSE_ERRORS_COMMON_H */