mirror of
https://github.com/cc65/cc65.git
synced 2024-12-25 17:29:50 +00:00
Added a new SetIndex() function/macro.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3910 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
b4ced298b1
commit
dd5e5c43d8
@ -134,6 +134,16 @@ INLINE unsigned SB_GetIndex (const StrBuf* B)
|
||||
# define SB_GetIndex(B) (B)->Index
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_INLINE)
|
||||
INLINE void SB_SetIndex (StrBuf* B, unsigned Index)
|
||||
/* Set the user index of the string buffer */
|
||||
{
|
||||
B->Index = Index;
|
||||
}
|
||||
#else
|
||||
# define SB_SetIndex(B) ((B)->Index = (Index))
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_INLINE)
|
||||
INLINE const char* SB_GetConstBuf (const StrBuf* B)
|
||||
/* Return a buffer pointer */
|
||||
|
Loading…
Reference in New Issue
Block a user