Output an error message when trying to determine the size of type void.
git-svn-id: svn://svn.cc65.org/cc65/trunk@224 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -6,10 +6,10 @@
|
|||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* (C) 1998 Ullrich von Bassewitz */
|
/* (C) 1998-2000 Ullrich von Bassewitz */
|
||||||
/* Wacholderweg 14 */
|
/* Wacholderweg 14 */
|
||||||
/* D-70597 Stuttgart */
|
/* D-70597 Stuttgart */
|
||||||
/* EMail: uz@musoftware.de */
|
/* EMail: uz@musoftware.de */
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* This software is provided 'as-is', without any expressed or implied */
|
/* This software is provided 'as-is', without any expressed or implied */
|
||||||
@@ -342,6 +342,7 @@ unsigned SizeOf (const type* tarray)
|
|||||||
switch (*tarray) {
|
switch (*tarray) {
|
||||||
|
|
||||||
case T_VOID:
|
case T_VOID:
|
||||||
|
Error (ERR_ILLEGAL_SIZE);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
case T_CHAR:
|
case T_CHAR:
|
||||||
|
|||||||
Reference in New Issue
Block a user