From: uz Date: Sun, 6 Sep 2009 16:50:41 +0000 (+0000) Subject: New function SymIsBitField. X-Git-Tag: V2.13.0rc1~134 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cc229ce7ba4bae9d4b31f4dda5579ab525279288;p=cc65 New function SymIsBitField. git-svn-id: svn://svn.cc65.org/cc65/trunk@4122 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/symentry.h b/src/cc65/symentry.h index 1f91ff409..fef10db59 100644 --- a/src/cc65/symentry.h +++ b/src/cc65/symentry.h @@ -165,6 +165,16 @@ void FreeSymEntry (SymEntry* E); void DumpSymEntry (FILE* F, const SymEntry* E); /* Dump the given symbol table entry to the file in readable form */ +#if defined(HAVE_INLINE) +INLINE int SymIsBitField (const SymEntry* Sym) +/* Return true if the given entry is a bit-field entry */ +{ + return ((Sym->Flags & SC_BITFIELD) == SC_BITFIELD); +} +#else +# define SymIsBitField(Sym) (((Sym)->Flags & SC_BITFIELD) == SC_BITFIELD) +#endif + #if defined(HAVE_INLINE) INLINE int SymIsTypeDef (const SymEntry* Sym) /* Return true if the given entry is a typedef entry */