mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 14:12:36 +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;
|
||||
default:
|
||||
/* 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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue