[gamecode] Add debug event name strings

Makes it easier to print nice debug event messages.
This commit is contained in:
Bill Currie 2022-01-03 14:39:32 +09:00
parent 8a2788c267
commit 920c5fd99b
2 changed files with 14 additions and 0 deletions

View file

@ -75,6 +75,8 @@ typedef struct pr_debug_header_s {
pr_uint_t debug_data;
pr_uint_t debug_data_size;
} pr_debug_header_t;
extern const char *prdebug_names[];
#endif
typedef enum prdebug_e {

View file

@ -52,6 +52,18 @@
#include "QF/simd/vec4i.h"
#include "compat.h"
const char *prdebug_names[] = {
[prd_none] = "none",
[prd_trace] = "trace",
[prd_breakpoint] = "breakpoint",
[prd_watchpoint] = "watchpoint",
[prd_subenter] = "subenter",
[prd_subexit] = "subexit",
[prd_begin] = "begin",
[prd_terminate] = "terminate",
[prd_runerror] = "runerror",
[prd_error] = "error",
};
/*
PR_RunError