[gamecode] Load extended debug data

And add function to get a source file's base directory if available.
This commit is contained in:
Bill Currie 2020-04-04 12:50:25 +09:00
parent 59f48e5e32
commit cf7c4780eb
2 changed files with 98 additions and 10 deletions

View file

@ -1689,6 +1689,7 @@ typedef struct type_view_s {
void PR_Debug_Init (progs_t *pr);
void PR_Debug_Init_Cvars (void);
int PR_LoadDebug (progs_t *pr);
const char *PR_Debug_GetBaseDirectory (progs_t *pr, const char *file);
void PR_Debug_Watch (progs_t *pr, const char *expr);
void PR_Debug_Print (progs_t *pr, const char *expr);
pr_auxfunction_t *PR_Debug_AuxFunction (progs_t *pr, pr_uint_t func) __attribute__((pure));