mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-22 10:21:21 +00:00
[qfcc] Set function file and line when building code
I suspect this is an ancient bug that wasn't noticed due to not looking at progs.src compiled code enough, but it makes the first statements of the function point to the correct line instead of a forward declaration.
This commit is contained in:
parent
abe43584ff
commit
548b7fe753
1 changed files with 3 additions and 0 deletions
|
@ -675,6 +675,9 @@ begin_function (symbol_t *sym, const char *nicename, symtab_t *parent,
|
|||
sym->s.func->def->nosave = 1;
|
||||
add_function (sym->s.func);
|
||||
reloc_def_func (sym->s.func, sym->s.func->def);
|
||||
|
||||
sym->s.func->def->file = pr.source_file;
|
||||
sym->s.func->def->line = pr.source_line;
|
||||
}
|
||||
sym->s.func->code = pr.code->size;
|
||||
|
||||
|
|
Loading…
Reference in a new issue