mirror of
https://github.com/cc65/cc65.git
synced 2025-02-09 17:33:00 +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
|
# define SB_GetIndex(B) (B)->Index
|
||||||
#endif
|
#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)
|
#if defined(HAVE_INLINE)
|
||||||
INLINE const char* SB_GetConstBuf (const StrBuf* B)
|
INLINE const char* SB_GetConstBuf (const StrBuf* B)
|
||||||
/* Return a buffer pointer */
|
/* Return a buffer pointer */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user