aboutsummaryrefslogtreecommitdiff
path: root/src/common/Define.h
diff options
context:
space:
mode:
authorTreeston <treeston.mmoc@gmail.com>2020-09-12 19:42:10 +0200
committerGitHub <noreply@github.com>2020-09-12 19:42:10 +0200
commit75f9e7396e35360f3016cc0cb21e72e20f5d96d5 (patch)
treee738b70d54516717d2c784117fbd2b0134412ac0 /src/common/Define.h
parent59be657ca267667b3cbeb1f34d47df0382e97f53 (diff)
[3.3.5] Core/ChatCommands: Show error messages from argument parsers (PR #25443)
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;