Commit f5cbc440e34b8b9bcc618e1e63b5fe66a25226d6

Sam Lantinga 2022-07-05T21:41:34

Merge commit 'ad0b91302d34336f8af8787fefeeddb553606ec6' into main

diff --git a/src/SDL_log.c b/src/SDL_log.c
index a00fa28..dd6026c 100644
--- a/src/SDL_log.c
+++ b/src/SDL_log.c
@@ -80,16 +80,20 @@ static const char *SDL_priority_prefixes[SDL_NUM_LOG_PRIORITIES] = {
 };
 
 #ifdef __ANDROID__
-static const char *SDL_category_prefixes[SDL_LOG_CATEGORY_RESERVED1] = {
+static const char *SDL_category_prefixes[] = {
     "APP",
     "ERROR",
+    "ASSERT",
     "SYSTEM",
     "AUDIO",
     "VIDEO",
     "RENDER",
-    "INPUT"
+    "INPUT",
+    "TEST"
 };
 
+SDL_COMPILE_TIME_ASSERT(category_prefixes_enum, SDL_TABLESIZE(SDL_category_prefixes) == SDL_LOG_CATEGORY_RESERVED1);
+
 static int SDL_android_priority[SDL_NUM_LOG_PRIORITIES] = {
     ANDROID_LOG_UNKNOWN,
     ANDROID_LOG_VERBOSE,