Move common log to new locale
This commit is contained in:
1 parent
252a0820ed
commit
0e040dd0d5
2 files changed
+31
-3
No files matched your search
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* @file locale_common.h
|
||||
* @author Piotr Krygier (everyonecancode@gmail.com)
|
||||
* @brief Error messages for Vulkan initializers
|
||||
* @version 0.1
|
||||
* @date 2022-05-13
|
||||
*
|
||||
* @copyright Copyright (c) 2022
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef RSE_LOCALE_COMMON_H
|
||||
#define RSE_LOCALE_COMMON_H
|
||||
|
||||
#include "localization.h"
|
||||
|
||||
#define vulkan_error_messages vulkan_error_messages_nolocale[SELECTED_LANGUAGE]
|
||||
|
||||
enum vulkan_errors_t {
|
||||
COMMON_MEMORY_ALLOCATION_FAILED,
|
||||
LAST_MESSAGE
|
||||
};
|
||||
|
||||
static const char vulkan_error_messages_nolocale[LAST_LANGUAGE][LAST_MESSAGE][MAX_MESSAGE_LENGHT] = {
|
||||
{/* EN_US */
|
||||
/* COMMON_MEMORY_ALLOCATION_FAILED */
|
||||
"Unable to allocate memory"
|
||||
}
|
||||
};
|
||||
|
||||
#endif /* RSE_LOCALE_COMMON_H */
|
||||
Reference in new issue
Block a user