mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 00:39:53 +00:00
STRLCAT_CONST_INCR should be at most 1 statement, so single-line if, for etc work
This commit is contained in:
parent
db723df879
commit
f309c85f92
@ -56,8 +56,8 @@ static INLINE bool string_is_equal(const char *a, const char *b)
|
||||
STRLCPY_CONST((buf) + MIN((strlcpy_ret), (buf_size)-1 - STRLEN_CONST((str))), (str))
|
||||
|
||||
#define STRLCAT_CONST_INCR(buf, strlcpy_ret, str, buf_size) \
|
||||
STRLCAT_CONST(buf, strlcpy_ret, str, buf_size); \
|
||||
(strlcpy_ret) += STRLEN_CONST((str))
|
||||
do { STRLCAT_CONST(buf, strlcpy_ret, str, buf_size); \
|
||||
(strlcpy_ret) += STRLEN_CONST((str)); } while(0)
|
||||
|
||||
#define string_is_not_equal_fast(a, b, size) (memcmp(a, b, size) != 0)
|
||||
#define string_is_equal_fast(a, b, size) (memcmp(a, b, size) == 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user