mirror of
https://github.com/cc65/cc65.git
synced 2025-02-04 13:32:54 +00:00
Error info for loading expressions of incomplete enum types.
No more "Illegal type 0016".
This commit is contained in:
parent
6df4f1996b
commit
d6aa446b54
@ -974,6 +974,11 @@ unsigned TypeOf (const Type* T)
|
|||||||
/* Address of ... */
|
/* Address of ... */
|
||||||
return CF_INT | CF_UNSIGNED;
|
return CF_INT | CF_UNSIGNED;
|
||||||
|
|
||||||
|
case T_ENUM:
|
||||||
|
/* Incomplete enum type */
|
||||||
|
Error ("Incomplete enum type");
|
||||||
|
return CF_INT;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
Error ("Illegal type %04lX", T->C);
|
Error ("Illegal type %04lX", T->C);
|
||||||
return CF_INT;
|
return CF_INT;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user