mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-07 01:42:04 +00:00
[qfcc] Handle convert symbols when processing
I'm pretty sure I don't want this getting into the target code, so handling it early (like in the immediate processing path) seems good.
This commit is contained in:
parent
c3bbd85857
commit
cfc5e0b5fd
1 changed files with 3 additions and 0 deletions
|
@ -218,6 +218,9 @@ proc_symbol (const expr_t *expr)
|
|||
auto sym = symtab_lookup (current_symtab, expr->symbol->name);
|
||||
if (sym) {
|
||||
scoped_src_loc (expr);
|
||||
if (sym->sy_type == sy_convert) {
|
||||
return sym->convert.conv (sym, sym->convert.data);
|
||||
}
|
||||
expr = new_symbol_expr (sym);
|
||||
}
|
||||
return expr;
|
||||
|
|
Loading…
Reference in a new issue