mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
[gamecode] Add debug event name strings
Makes it easier to print nice debug event messages.
This commit is contained in:
parent
8a2788c267
commit
920c5fd99b
2 changed files with 14 additions and 0 deletions
|
@ -75,6 +75,8 @@ typedef struct pr_debug_header_s {
|
||||||
pr_uint_t debug_data;
|
pr_uint_t debug_data;
|
||||||
pr_uint_t debug_data_size;
|
pr_uint_t debug_data_size;
|
||||||
} pr_debug_header_t;
|
} pr_debug_header_t;
|
||||||
|
|
||||||
|
extern const char *prdebug_names[];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef enum prdebug_e {
|
typedef enum prdebug_e {
|
||||||
|
|
|
@ -52,6 +52,18 @@
|
||||||
#include "QF/simd/vec4i.h"
|
#include "QF/simd/vec4i.h"
|
||||||
#include "compat.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
|
PR_RunError
|
||||||
|
|
Loading…
Reference in a new issue