mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-25 12:41:19 +00:00
add the type for the invalid-type-for-global message
This commit is contained in:
parent
af3d9e0bdf
commit
c2925b61f2
1 changed files with 2 additions and 1 deletions
3
ir.c
3
ir.c
|
@ -2740,7 +2740,8 @@ static bool ir_builder_gen_global(ir_builder *self, ir_value *global)
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
/* refuse to create 'void' type or any other fancy business. */
|
/* refuse to create 'void' type or any other fancy business. */
|
||||||
irerror(global->context, "Invalid type for global variable %s\n", global->name);
|
irerror(global->context, "Invalid type for global variable `%s`: %s\n",
|
||||||
|
global->name, type_name[global->vtype]);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue