From 2d99b935f3d5d5ae72ef3fd078e187b2e968cbce Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 9 May 2023 13:13:15 +1000 Subject: [PATCH] BLI_string: add macros to wrap BLI_vsnprintf --- source/blender/blenlib/BLI_string.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/blender/blenlib/BLI_string.h b/source/blender/blenlib/BLI_string.h index 5df6ef04849..c2d372cd773 100644 --- a/source/blender/blenlib/BLI_string.h +++ b/source/blender/blenlib/BLI_string.h @@ -545,6 +545,8 @@ int BLI_string_find_split_words(const char *str, #define SNPRINTF(dst, format, ...) BLI_snprintf(dst, ARRAY_SIZE(dst), format, __VA_ARGS__) #define SNPRINTF_RLEN(dst, format, ...) \ BLI_snprintf_rlen(dst, ARRAY_SIZE(dst), format, __VA_ARGS__) +#define VSNPRINTF(dst, format, args) BLI_vsnprintf(dst, ARRAY_SIZE(dst), format, args) +#define VSNPRINTF_RLEN(dst, format, args) BLI_vsnprintf_rlen(dst, ARRAY_SIZE(dst), format, args) #define STR_CONCAT(dst, len, suffix) \ len += BLI_strncpy_rlen(dst + len, suffix, ARRAY_SIZE(dst) - len) #define STR_CONCATF(dst, len, format, ...) \