VirtualBox

Ignore:
Timestamp:
Aug 25, 2022 10:41:51 PM (2 years ago)
Author:
vboxsync
Message:

IPRT: Added RTMsgSyntax and RTMsgSyntaxV. bugref:10261

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/misc/message.cpp

    r96407 r96504  
    211211
    212212
     213RTDECL(RTEXITCODE)  RTMsgSyntax(const char *pszFormat, ...)
     214{
     215    va_list va;
     216    va_start(va, pszFormat);
     217    RTMsgSyntaxV(pszFormat, va);
     218    va_end(va);
     219    return RTEXITCODE_SYNTAX;
     220}
     221RT_EXPORT_SYMBOL(RTMsgSyntax);
     222
     223
     224RTDECL(RTEXITCODE)  RTMsgSyntaxV(const char *pszFormat, va_list va)
     225{
     226    rtMsgWorker(g_pStdOut, "syntax error: ", pszFormat, va);
     227    return RTEXITCODE_SYNTAX;
     228}
     229RT_EXPORT_SYMBOL(RTMsgSyntaxV);
     230
     231
    213232RTDECL(int)  RTMsgWarning(const char *pszFormat, ...)
    214233{
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette