summaryrefslogtreecommitdiff
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 d065370836..ab007ee89c 100644
--- a/src/common/Define.h
+++ b/src/common/Define.h
@@ -103,6 +103,9 @@
#define SZFMTD "%" PRIuPTR
+#define STRING_VIEW_FMT "%.*s"
+#define STRING_VIEW_FMT_ARG(str) static_cast<int>((str).length()), (str).data()
+
typedef std::int64_t int64;
typedef std::int32_t int32;
typedef std::int16_t int16;