fix: finish basic export test on Virtools 5 environment

This commit is contained in:
2024-08-09 16:19:26 +08:00
parent 6943088df1
commit 7d9b7f14e8
9 changed files with 123 additions and 81 deletions

View File

@@ -8,12 +8,16 @@ namespace VSW {
void Reporter::PrePrint(const YYCC::yycc_char8_t* strl) const {}
#define GENERIC_REPORTER_WRITE(ty, data) YYCC::ConsoleHelper::Write(YYCC_U8("[" #ty "] ")); \
YYCC::ConsoleHelper::WriteLine(data);
#define GENERIC_REPORTER_FORMAT(ty, data) YYCC::ConsoleHelper::Write(YYCC_U8("[" #ty "] ")); \
va_list argptr; \
#define GENERIC_REPORTER_WRITE(ty, data) YYCC::yycc_u8string cache(YYCC_U8("[" #ty "] ")); \
cache += data; \
this->PrePrint(cache.c_str()); \
YYCC::ConsoleHelper::WriteLine(cache.c_str());
#define GENERIC_REPORTER_FORMAT(ty, data) va_list argptr; \
va_start(argptr, data); \
YYCC::ConsoleHelper::WriteLine(YYCC::StringHelper::VPrintf(data, argptr).c_str()); \
YYCC::yycc_u8string cache(YYCC::StringHelper::VPrintf(data, argptr)); \
cache.insert(0u, YYCC_U8("[" #ty "] ")); \
this->PrePrint(cache.c_str()); \
YYCC::ConsoleHelper::WriteLine(cache.c_str()); \
va_end(argptr);
void Reporter::Err(const YYCC::yycc_char8_t* strl) const {