From d617466d87863d75a83dd01e68da7228907f4656 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Thu, 7 Mar 2019 12:01:32 +0100 Subject: Refactor building the draw string for floats and ints Differential Revision: https://developer.blender.org/D4466 --- source/blender/blenlib/BLI_string.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/blenlib/BLI_string.h') diff --git a/source/blender/blenlib/BLI_string.h b/source/blender/blenlib/BLI_string.h index 91eefc0f5b1..831626b164b 100644 --- a/source/blender/blenlib/BLI_string.h +++ b/source/blender/blenlib/BLI_string.h @@ -111,6 +111,10 @@ int BLI_string_find_split_words( 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 STR_CONCAT(dst, len, suffix) \ + len += BLI_strncpy_rlen(dst + len, suffix, ARRAY_SIZE(dst) - len) +#define STR_CONCATF(dst, len, format, ...) \ + len += BLI_snprintf_rlen(dst + len, ARRAY_SIZE(dst) - len, format, __VA_ARGS__) /** \} */ #ifdef __cplusplus -- cgit v1.2.3