From: uz Date: Sun, 7 Aug 2011 18:47:21 +0000 (+0000) Subject: New flag bit that tells if a scope has a label. X-Git-Tag: V2.13.3~331 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=49b66ebd2b06ffe22d684c0e548660df030bae33;p=cc65 New flag bit that tells if a scope has a label. git-svn-id: svn://svn.cc65.org/cc65/trunk@5131 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/common/scopedefs.h b/src/common/scopedefs.h index b36b788d6..d1a0cec46 100644 --- a/src/common/scopedefs.h +++ b/src/common/scopedefs.h @@ -51,6 +51,14 @@ #define SCOPE_HAS_SIZE(x) (((x) & SCOPE_MASK_SIZE) == SCOPE_SIZE) +/* Does the scope has a label? */ +#define SCOPE_UNLABELED 0x00U /* Scope has no label */ +#define SCOPE_LABELED 0x02U /* Scope has a label */ +#define SCOPE_MASK_LABEL 0x02U /* Label size */ + +#define SCOPE_HAS_LABEL(x) (((x) & SCOPE_MASK_LABEL) == SCOPE_LABELED) + + /* Scope types */ enum {