mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 18:01:15 +00:00
Catch attempts to create a def with a null type.
This commit is contained in:
parent
5f3c1872b9
commit
0efc759f2d
1 changed files with 3 additions and 0 deletions
|
@ -103,6 +103,9 @@ new_def (const char *name, type_t *type, defspace_t *space,
|
|||
|
||||
if (!space && storage != st_extern)
|
||||
internal_error (0, "non-external def with no storage space");
|
||||
if (!type)
|
||||
internal_error (0, "attempt to create def '%s' with a null type",
|
||||
name);
|
||||
|
||||
def->return_addr = __builtin_return_address (0);
|
||||
|
||||
|
|
Loading…
Reference in a new issue