VirtualBox

Changeset 85121 in vbox for trunk/include/VBox/dbggui.h


Ignore:
Timestamp:
Jul 8, 2020 7:33:26 PM (4 years ago)
Author:
vboxsync
Message:

iprt/cdefs.h: Refactored the typedef use of DECLCALLBACK as well as DECLCALLBACKMEMBER to wrap the whole expression, similar to the DECLR?CALLBACKMEMBER macros. This allows adding a throw() at the end when compiling with the VC++ compiler to indicate that the callbacks won't throw anything, so we can stop supressing the C5039 warning about passing functions that can potential throw C++ exceptions to extern C code that can't necessarily cope with such (unwind,++). Introduced a few _EX variations that allows specifying different/no calling convention too, as that's handy when dynamically resolving host APIs. Fixed numerous places missing DECLCALLBACK and such. Left two angry @todos regarding use of CreateThread. bugref:9794

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/dbggui.h

    r82968 r85121  
    5555    uint32_t u32Version;
    5656    /** @copydoc DBGGuiDestroy */
    57     DECLCALLBACKMEMBER(int,  pfnDestroy)(PDBGGUI pGui);
     57    DECLCALLBACKMEMBER(int, pfnDestroy,(PDBGGUI pGui));
    5858    /** @copydoc DBGGuiAdjustRelativePos */
    59     DECLCALLBACKMEMBER(void, pfnAdjustRelativePos)(PDBGGUI pGui, int x, int y, unsigned cx, unsigned cy);
     59    DECLCALLBACKMEMBER(void, pfnAdjustRelativePos,(PDBGGUI pGui, int x, int y, unsigned cx, unsigned cy));
    6060    /** @copydoc DBGGuiShowStatistics */
    61     DECLCALLBACKMEMBER(int,  pfnShowStatistics)(PDBGGUI pGui);
     61    DECLCALLBACKMEMBER(int, pfnShowStatistics,(PDBGGUI pGui));
    6262    /** @copydoc DBGGuiShowCommandLine */
    63     DECLCALLBACKMEMBER(int,  pfnShowCommandLine)(PDBGGUI pGui);
     63    DECLCALLBACKMEMBER(int, pfnShowCommandLine,(PDBGGUI pGui));
    6464    /** @copydoc DBGGuiSetParent */
    65     DECLCALLBACKMEMBER(void, pfnSetParent)(PDBGGUI pGui, void *pvParent);
     65    DECLCALLBACKMEMBER(void, pfnSetParent,(PDBGGUI pGui, void *pvParent));
    6666    /** @copydoc DBGGuiSetMenu */
    67     DECLCALLBACKMEMBER(void, pfnSetMenu)(PDBGGUI pGui, void *pvMenu);
     67    DECLCALLBACKMEMBER(void, pfnSetMenu,(PDBGGUI pGui, void *pvMenu));
    6868    /** The end version. (DBGGUIVT_VERSION) */
    6969    uint32_t u32EndVersion;
     
    9595DBGDECL(int) DBGGuiCreate(ISession *pSession, PDBGGUI *ppGui, PCDBGGUIVT *ppGuiVT);
    9696/** @copydoc DBGGuiCreate */
    97 typedef DECLCALLBACK(int) FNDBGGUICREATE(ISession *pSession, PDBGGUI *ppGui, PCDBGGUIVT *ppGuiVT);
     97typedef DECLCALLBACKTYPE(int, FNDBGGUICREATE,(ISession *pSession, PDBGGUI *ppGui, PCDBGGUIVT *ppGuiVT));
    9898/** Pointer to DBGGuiCreate. */
    9999typedef FNDBGGUICREATE *PFNDBGGUICREATE;
     
    110110DBGDECL(int) DBGGuiCreateForVM(PUVM pUVM, PDBGGUI *ppGui, PCDBGGUIVT *ppGuiVT);
    111111/** @copydoc DBGGuiCreateForVM */
    112 typedef DECLCALLBACK(int) FNDBGGUICREATEFORVM(PUVM pUVM, PDBGGUI *ppGui, PCDBGGUIVT *ppGuiVT);
     112typedef DECLCALLBACKTYPE(int, FNDBGGUICREATEFORVM,(PUVM pUVM, PDBGGUI *ppGui, PCDBGGUIVT *ppGuiVT));
    113113/** Pointer to DBGGuiCreateForVM. */
    114114typedef FNDBGGUICREATEFORVM *PFNDBGGUICREATEFORVM;
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