aboutsummaryrefslogtreecommitdiff
path: root/src/common/Define.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/Define.h')
-rw-r--r--src/common/Define.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/Define.h b/src/common/Define.h
index ed5495d2837..74ac26a0c00 100644
--- a/src/common/Define.h
+++ b/src/common/Define.h
@@ -135,6 +135,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;