]> git.sur5r.net Git - cc65/commitdiff
New flag bit that tells if a scope has a label.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 7 Aug 2011 18:47:21 +0000 (18:47 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 7 Aug 2011 18:47:21 +0000 (18:47 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@5131 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/common/scopedefs.h

index b36b788d684c928ded9e4b9ea51c4038b64a63f3..d1a0cec4693d4ee912c2953e56d0c215e2cf6aee 100644 (file)
 
 #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 {