VirtualBox

Changeset 85099 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Jul 7, 2020 7:02:29 PM (4 years ago)
Author:
vboxsync
Message:

VBox/cdefs.h,VBoxGuestLib.h: Make all _DECL macros NOTHROW'ers. bugref:9794

Location:
trunk/include/VBox
Files:
2 edited

Legend:

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

    r84548 r85099  
    104104 * @param type      Return type.  */
    105105# ifdef RT_OS_DARWIN /** @todo probably apply to all, but don't want a forest fire on our hands right now. */
    106 #  define DECLR0VBGL(type) DECLHIDDEN(type) VBOXCALL
     106#  define DECLR0VBGL(type) DECLHIDDEN(DECL_NOTHROW(type)) VBOXCALL
    107107# else
    108 #  define DECLR0VBGL(type) type VBOXCALL
     108#  define DECLR0VBGL(type) DECL_NOTHROW(type) VBOXCALL
    109109# endif
    110110# define DECLVBGL(type) DECLR0VBGL(type)
     
    544544 * @param   type    The return type of the function declaration.
    545545 */
    546 # define VBGLR3DECL(type) DECLHIDDEN(type) VBOXCALL
     546# define VBGLR3DECL(type) DECL_HIDDEN_NOTHROW(type) VBOXCALL
    547547
    548548/** @name General-purpose functions
  • trunk/include/VBox/cdefs.h

    r82968 r85099  
    121121#if defined(IN_DIS)
    122122# ifdef IN_DIS_STATIC
    123 #  define DISDECL(type)     DECLHIDDEN(type) VBOXCALL
    124 # else
    125 #  define DISDECL(type)     DECLEXPORT(type) VBOXCALL
    126 # endif
    127 #else
    128 # define DISDECL(type)      DECLIMPORT(type) VBOXCALL
     123#  define DISDECL(type)     DECL_HIDDEN_NOTHROW(type) VBOXCALL
     124# else
     125#  define DISDECL(type)     DECL_EXPORT_NOTHROW(type) VBOXCALL
     126# endif
     127#else
     128# define DISDECL(type)      DECL_IMPORT_NOTHROW(type) VBOXCALL
    129129#endif
    130130
     
    142142 */
    143143#if defined(IN_DBG_R3) || defined(IN_DBG)
    144 # define DBGDECL(type)      DECLEXPORT(type) VBOXCALL
    145 #else
    146 # define DBGDECL(type)      DECLIMPORT(type) VBOXCALL
     144# define DBGDECL(type)      DECL_EXPORT_NOTHROW(type) VBOXCALL
     145#else
     146# define DBGDECL(type)      DECL_IMPORT_NOTHROW(type) VBOXCALL
    147147#endif
    148148
     
    158158 */
    159159#ifdef IN_INTNET_R3
    160 # define INTNETR3DECL(type) DECLEXPORT(type) VBOXCALL
    161 #else
    162 # define INTNETR3DECL(type) DECLIMPORT(type) VBOXCALL
     160# define INTNETR3DECL(type) DECL_EXPORT_NOTHROW(type) VBOXCALL
     161#else
     162# define INTNETR3DECL(type) DECL_IMPORT_NOTHROW(type) VBOXCALL
    163163#endif
    164164
     
    172172 */
    173173#ifdef IN_INTNET_R0
    174 # define INTNETR0DECL(type) DECLEXPORT(type) VBOXCALL
    175 #else
    176 # define INTNETR0DECL(type) DECLIMPORT(type) VBOXCALL
     174# define INTNETR0DECL(type) DECL_EXPORT_NOTHROW(type) VBOXCALL
     175#else
     176# define INTNETR0DECL(type) DECL_IMPORT_NOTHROW(type) VBOXCALL
    177177#endif
    178178
     
    188188 */
    189189#ifdef IN_PCIRAW_R3
    190 # define PCIRAWR3DECL(type) DECLEXPORT(type) VBOXCALL
    191 #else
    192 # define PCIRAWR3DECL(type) DECLIMPORT(type) VBOXCALL
     190# define PCIRAWR3DECL(type) DECL_EXPORT_NOTHROW(type) VBOXCALL
     191#else
     192# define PCIRAWR3DECL(type) DECL_IMPORT_NOTHROW(type) VBOXCALL
    193193#endif
    194194
     
    202202 */
    203203#ifdef IN_PCIRAW_R0
    204 # define PCIRAWR0DECL(type) DECLEXPORT(type) VBOXCALL
    205 #else
    206 # define PCIRAWR0DECL(type) DECLIMPORT(type) VBOXCALL
     204# define PCIRAWR0DECL(type) DECL_EXPORT_NOTHROW(type) VBOXCALL
     205#else
     206# define PCIRAWR0DECL(type) DECL_IMPORT_NOTHROW(type) VBOXCALL
    207207#endif
    208208
     
    218218 */
    219219#ifdef IN_REM_R3
    220 # define REMR3DECL(type)    DECLEXPORT(type) VBOXCALL
    221 #else
    222 # define REMR3DECL(type)    DECLIMPORT(type) VBOXCALL
     220# define REMR3DECL(type)    DECL_EXPORT_NOTHROW(type) VBOXCALL
     221#else
     222# define REMR3DECL(type)    DECL_IMPORT_NOTHROW(type) VBOXCALL
    223223#endif
    224224
     
    235235#ifdef IN_SUP_R3
    236236# ifdef IN_SUP_STATIC
    237 #  define SUPR3DECL(type)   DECLHIDDEN(type) VBOXCALL
    238 # else
    239 #  define SUPR3DECL(type)   DECLEXPORT(type) VBOXCALL
     237#  define SUPR3DECL(type)   DECL_HIDDEN_NOTHROW(type) VBOXCALL
     238# else
     239#  define SUPR3DECL(type)   DECL_EXPORT_NOTHROW(type) VBOXCALL
    240240# endif
    241241#else
    242242# ifdef IN_SUP_STATIC
    243 #  define SUPR3DECL(type)   DECLHIDDEN(type) VBOXCALL
    244 # else
    245 #  define SUPR3DECL(type)   DECLIMPORT(type) VBOXCALL
     243#  define SUPR3DECL(type)   DECL_HIDDEN_NOTHROW(type) VBOXCALL
     244# else
     245#  define SUPR3DECL(type)   DECL_IMPORT_NOTHROW(type) VBOXCALL
    246246# endif
    247247#endif
     
    261261#ifdef IN_SUP_R0
    262262# ifdef IN_SUP_STATIC
    263 #  define SUPR0DECL(type)   DECLHIDDEN(type) VBOXCALL
    264 # else
    265 #  define SUPR0DECL(type)   DECLEXPORT(type) VBOXCALL
     263#  define SUPR0DECL(type)   DECL_HIDDEN_NOTHROW(type) VBOXCALL
     264# else
     265#  define SUPR0DECL(type)   DECL_EXPORT_NOTHROW(type) VBOXCALL
    266266# endif
    267267#else
    268268# ifdef IN_SUP_STATIC
    269 #  define SUPR0DECL(type)   DECLHIDDEN(type) VBOXCALL
    270 # else
    271 #  define SUPR0DECL(type)   DECLIMPORT(type) VBOXCALL
     269#  define SUPR0DECL(type)   DECL_HIDDEN_NOTHROW(type) VBOXCALL
     270# else
     271#  define SUPR0DECL(type)   DECL_IMPORT_NOTHROW(type) VBOXCALL
    272272# endif
    273273#endif
     
    282282 */
    283283#ifdef IN_SUP_RC
    284 # define SUPRCDECL(type)    DECLEXPORT(type) VBOXCALL
    285 #else
    286 # define SUPRCDECL(type)    DECLIMPORT(type) VBOXCALL
     284# define SUPRCDECL(type)    DECL_EXPORT_NOTHROW(type) VBOXCALL
     285#else
     286# define SUPRCDECL(type)    DECL_IMPORT_NOTHROW(type) VBOXCALL
    287287#endif
    288288
     
    296296 */
    297297#if defined(IN_SUP_R0) || defined(IN_SUP_R3) || defined(IN_SUP_RC)
    298 # define SUPDECL(type)      DECLEXPORT(type) VBOXCALL
    299 #else
    300 # define SUPDECL(type)      DECLIMPORT(type) VBOXCALL
     298# define SUPDECL(type)      DECL_EXPORT_NOTHROW(type) VBOXCALL
     299#else
     300# define SUPDECL(type)      DECL_IMPORT_NOTHROW(type) VBOXCALL
    301301#endif
    302302
     
    313313# define USBLIB_DECL(type)   type VBOXCALL
    314314#elif defined(IN_USBLIB)
    315 # define USBLIB_DECL(type)   DECLEXPORT(type) VBOXCALL
    316 #else
    317 # define USBLIB_DECL(type)   DECLIMPORT(type) VBOXCALL
     315# define USBLIB_DECL(type)   DECL_EXPORT_NOTHROW(type) VBOXCALL
     316#else
     317# define USBLIB_DECL(type)   DECL_IMPORT_NOTHROW(type) VBOXCALL
    318318#endif
    319319
     
    334334#ifdef IN_VMM_R3
    335335# ifdef IN_VMM_STATIC
    336 #  define VMMR3DECL(type)           DECLHIDDEN(type) VBOXCALL
    337 # else
    338 #  define VMMR3DECL(type)           DECLEXPORT(type) VBOXCALL
     336#  define VMMR3DECL(type)           DECL_HIDDEN_NOTHROW(type) VBOXCALL
     337# else
     338#  define VMMR3DECL(type)           DECL_EXPORT_NOTHROW(type) VBOXCALL
    339339# endif
    340340#elif defined(IN_RING3)
    341341# ifdef IN_VMM_STATIC
    342 #  define VMMR3DECL(type)           DECLHIDDEN(type) VBOXCALL
    343 # else
    344 #  define VMMR3DECL(type)           DECLIMPORT(type) VBOXCALL
     342#  define VMMR3DECL(type)           DECL_HIDDEN_NOTHROW(type) VBOXCALL
     343# else
     344#  define VMMR3DECL(type)           DECL_IMPORT_NOTHROW(type) VBOXCALL
    345345# endif
    346346#else
     
    357357 */
    358358#ifdef IN_VMM_R0
    359 # define VMMR0DECL(type)            DECLEXPORT(type) VBOXCALL
     359# define VMMR0DECL(type)            DECL_EXPORT_NOTHROW(type) VBOXCALL
    360360#elif defined(IN_RING0)
    361 # define VMMR0DECL(type)            DECLIMPORT(type) VBOXCALL
     361# define VMMR0DECL(type)            DECL_IMPORT_NOTHROW(type) VBOXCALL
    362362#else
    363363# define VMMR0DECL(type)            DECL_INVALID(type)
     
    373373 */
    374374#ifdef IN_VMM_RC
    375 # define VMMRCDECL(type)            DECLEXPORT(type) VBOXCALL
     375# define VMMRCDECL(type)            DECL_EXPORT_NOTHROW(type) VBOXCALL
    376376#elif defined(IN_RC)
    377 # define VMMRCDECL(type)            DECLIMPORT(type) VBOXCALL
     377# define VMMRCDECL(type)            DECL_IMPORT_NOTHROW(type) VBOXCALL
    378378#else
    379379# define VMMRCDECL(type)            DECL_INVALID(type)
     
    385385 */
    386386#if defined(IN_VMM_R0) || defined(IN_VMM_RC)
    387 # define VMMRZDECL(type)            DECLEXPORT(type) VBOXCALL
     387# define VMMRZDECL(type)            DECL_EXPORT_NOTHROW(type) VBOXCALL
    388388#elif defined(IN_RING0) || defined(IN_RZ)
    389 # define VMMRZDECL(type)            DECLIMPORT(type) VBOXCALL
     389# define VMMRZDECL(type)            DECL_IMPORT_NOTHROW(type) VBOXCALL
    390390#else
    391391# define VMMRZDECL(type)            DECL_INVALID(type)
     
    397397 */
    398398#ifdef IN_VMM_STATIC
    399 # define VMMDECL(type)              DECLHIDDEN(type) VBOXCALL
     399# define VMMDECL(type)              DECL_HIDDEN_NOTHROW(type) VBOXCALL
    400400#elif defined(IN_VMM_R3) || defined(IN_VMM_R0) || defined(IN_VMM_RC)
    401 # define VMMDECL(type)              DECLEXPORT(type) VBOXCALL
    402 #else
    403 # define VMMDECL(type)              DECLIMPORT(type) VBOXCALL
     401# define VMMDECL(type)              DECL_EXPORT_NOTHROW(type) VBOXCALL
     402#else
     403# define VMMDECL(type)              DECL_IMPORT_NOTHROW(type) VBOXCALL
    404404#endif
    405405
     
    409409 */
    410410#if defined(IN_VMM_R3) || defined(IN_VMM_R0) || defined(IN_VMM_RC)
    411 # define VMM_INT_DECL(type)         DECLHIDDEN(type) VBOXCALL
     411# define VMM_INT_DECL(type)         DECL_HIDDEN_NOTHROW(type) VBOXCALL
    412412#else
    413413# define VMM_INT_DECL(type)         DECL_INVALID(type)
     
    419419 */
    420420#ifdef IN_VMM_R3
    421 # define VMMR3_INT_DECL(type)       DECLHIDDEN(type) VBOXCALL
     421# define VMMR3_INT_DECL(type)       DECL_HIDDEN_NOTHROW(type) VBOXCALL
    422422#else
    423423# define VMMR3_INT_DECL(type)       DECL_INVALID(type)
     
    429429 */
    430430#ifdef IN_VMM_R0
    431 # define VMMR0_INT_DECL(type)       DECLHIDDEN(type) VBOXCALL
     431# define VMMR0_INT_DECL(type)       DECL_HIDDEN_NOTHROW(type) VBOXCALL
    432432#else
    433433# define VMMR0_INT_DECL(type)       DECL_INVALID(type)
     
    439439 */
    440440#ifdef IN_VMM_RC
    441 # define VMMRC_INT_DECL(type)       DECLHIDDEN(type) VBOXCALL
     441# define VMMRC_INT_DECL(type)       DECL_HIDDEN_NOTHROW(type) VBOXCALL
    442442#else
    443443# define VMMRC_INT_DECL(type)       DECL_INVALID(type)
     
    449449 */
    450450#if defined(IN_VMM_RC) || defined(IN_VMM_R0)
    451 # define VMMRZ_INT_DECL(type)       DECLHIDDEN(type) VBOXCALL
     451# define VMMRZ_INT_DECL(type)       DECL_HIDDEN_NOTHROW(type) VBOXCALL
    452452#else
    453453# define VMMRZ_INT_DECL(type)       DECL_INVALID(type)
     
    465465#ifdef IN_VBOXDDU
    466466# ifdef IN_VBOXDDU_STATIC
    467 #  define VBOXDDU_DECL(type) type
    468 # else
    469 #  define VBOXDDU_DECL(type) DECLEXPORT(type) VBOXCALL
    470 # endif
    471 #else
    472 # define VBOXDDU_DECL(type) DECLIMPORT(type) VBOXCALL
     467#  define VBOXDDU_DECL(type)        type
     468# else
     469#  define VBOXDDU_DECL(type)        DECL_EXPORT_NOTHROW(type) VBOXCALL
     470# endif
     471#else
     472# define VBOXDDU_DECL(type)         DECL_IMPORT_NOTHROW(type) VBOXCALL
    473473#endif
    474474
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