Allow conditional directives within .STRUCT7:UNION and .ENUM
git-svn-id: svn://svn.cc65.org/cc65/trunk@2672 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
#include "addrsize.h"
|
||||
|
||||
/* ca65 */
|
||||
#include "condasm.h"
|
||||
#include "error.h"
|
||||
#include "expr.h"
|
||||
#include "nexttok.h"
|
||||
@@ -187,8 +188,10 @@ static long DoStructInternal (long Offs, unsigned Type)
|
||||
break;
|
||||
|
||||
default:
|
||||
Error ("Invalid storage allocator in struct/union");
|
||||
SkipUntilSep ();
|
||||
if (!CheckConditionals ()) {
|
||||
/* Not a conditional directive */
|
||||
ErrorSkip ("Invalid storage allocator in struct/union");
|
||||
}
|
||||
}
|
||||
|
||||
/* Next member */
|
||||
|
||||
Reference in New Issue
Block a user