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

+5 -5
View File
@@ -14,14 +14,14 @@
#include "localization.h"
#define vulkan_error_messages vulkan_error_messages_nolocale[SELECTED_LANGUAGE]
#define common_messages common_messages_nolocale[SELECTED_LANGUAGE]
enum vulkan_errors_t {
COMMON_MEMORY_ALLOCATION_FAILED,
LAST_MESSAGE
enum common_errors_t {
COMMON_ERROR_MEMORY_ALLOCATION_FAILED,
COMMON_ERROR_LAST_MESSAGE
};
static const char vulkan_error_messages_nolocale[LAST_LANGUAGE][LAST_MESSAGE][MAX_MESSAGE_LENGHT] = {
static const char common_messages_nolocale[LAST_LANGUAGE][COMMON_ERROR_LAST_MESSAGE][MAX_MESSAGE_LENGHT] = {
{/* EN_US */
/* COMMON_MEMORY_ALLOCATION_FAILED */
"Unable to allocate memory"