From cc229ce7ba4bae9d4b31f4dda5579ab525279288 Mon Sep 17 00:00:00 2001 From: uz Date: Sun, 6 Sep 2009 16:50:41 +0000 Subject: [PATCH] New function SymIsBitField. git-svn-id: svn://svn.cc65.org/cc65/trunk@4122 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/symentry.h | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 */ -- 2.39.5