diff options
author | Treeston <treeston.mmoc@gmail.com> | 2020-09-12 19:42:10 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-02-05 23:42:15 +0100 |
commit | 378691aaa286822ee20e0428d278f2bca6e7438e (patch) | |
tree | 82ee5ee5466dc5a593ab7aef9875c89e675dc63e /src/common/Define.h | |
parent | 7d0586812a8e7d17f901d9e01af424c4a4ff6bc7 (diff) |
[3.3.5] Core/ChatCommands: Show error messages from argument parsers (PR #25443)
(cherry picked from commit 75f9e7396e35360f3016cc0cb21e72e20f5d96d5)
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; |