diff options
Diffstat (limited to 'src/common/Define.h')
-rw-r--r-- | src/common/Define.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/Define.h b/src/common/Define.h index 1e73dd3069c..b43dfbf610c 100644 --- a/src/common/Define.h +++ b/src/common/Define.h @@ -144,6 +144,9 @@ #define SZFMTD "%" PRIuPTR +#define STRING_VIEW_FMT "%.*s" +#define STRING_VIEW_FMT_ARG(str) static_cast<int>((str).length()), (str).data() + typedef int64_t int64; typedef int32_t int32; typedef int16_t int16; |