mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-24 20:51:35 +00:00
[qfcc] Dump conflicting type expressions in debug
This commit is contained in:
parent
b89e243c47
commit
f3ca0c9222
1 changed files with 4 additions and 0 deletions
|
@ -217,6 +217,10 @@ extract_type (const expr_t *e)
|
||||||
expr_t *
|
expr_t *
|
||||||
type_mismatch (const expr_t *e1, const expr_t *e2, int op)
|
type_mismatch (const expr_t *e1, const expr_t *e2, int op)
|
||||||
{
|
{
|
||||||
|
if (options.verbosity >= 2) {
|
||||||
|
print_expr (e1);
|
||||||
|
print_expr (e2);
|
||||||
|
}
|
||||||
return error (e1, "type mismatch: %s %s %s",
|
return error (e1, "type mismatch: %s %s %s",
|
||||||
get_type_string (get_type (e1)), get_op_string (op),
|
get_type_string (get_type (e1)), get_op_string (op),
|
||||||
get_type_string (get_type (e2)));
|
get_type_string (get_type (e2)));
|
||||||
|
|
Loading…
Reference in a new issue