VirtualBox

Changeset 57432 in vbox for trunk


Ignore:
Timestamp:
Aug 18, 2015 2:57:46 PM (9 years ago)
Author:
vboxsync
Message:

iprt/cdefs.h,*: Split RT_NO_THROW into prototype and definition macros named RT_NO_THROW_PROTO and RT_NO_THROW_DEF respecitively.

Location:
trunk
Files:
30 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/cdefs.h

    r57430 r57432  
    877877#endif
    878878
    879 /** @def RT_NO_THROW
     879/** @def RT_NO_THROW_PROTO
    880880 * How to express that a function doesn't throw C++ exceptions
    881881 * and the compiler can thus save itself the bother of trying
     
    883883 * and the semicolon in function prototypes (and implementation if C++).
    884884 *
     885 * @remarks May not work on C++ methods, mainly intented for C-style APIs.
     886 *
    885887 * @remarks The use of the nothrow attribute with GCC is because old compilers
    886888 *          (4.1.1, 32-bit) leaking the nothrow into global space or something
    887  *          when used with RTDECL or similar.
     889 *          when used with RTDECL or similar.  Using this forces use to have two
     890 *          macros, as the nothrow attribute is not for the function definition.
    888891 */
    889892#ifdef RT_EXCEPTIONS_ENABLED
    890893# ifdef __GNUC__
    891 #  define RT_NO_THROW           __attribute__((nothrow))
     894#  define RT_NO_THROW_PROTO     __attribute__((__nothrow__))
    892895# else
    893 #  define RT_NO_THROW           throw()
    894 # endif
    895 #else
    896 # define RT_NO_THROW
     896#  define RT_NO_THROW_PROTO     throw()
     897# endif
     898#else
     899# define RT_NO_THROW_PROO
     900#endif
     901
     902/** @def RT_NO_THROW_DEF
     903 * The counter part to RT_NO_THROW_PROTO that is added to the function
     904 * definition.
     905 */
     906#if defined(RT_EXCEPTIONS_ENABLED) && !defined(__GNUC__)
     907# define RT_NO_THROW_DEF        RT_NO_THROW_PROTO
     908#else
     909# define RT_NO_THROW_DEF
    897910#endif
    898911
  • trunk/include/iprt/mem.h

    r56291 r57432  
    103103 * @param   pszTag  Allocation tag used for statistics and such.
    104104 */
    105 RTDECL(void *)  RTMemTmpAllocTag(size_t cb, const char *pszTag) RT_NO_THROW;
     105RTDECL(void *)  RTMemTmpAllocTag(size_t cb, const char *pszTag) RT_NO_THROW_PROTO;
    106106
    107107/**
     
    126126 * @param   pszTag  Allocation tag used for statistics and such.
    127127 */
    128 RTDECL(void *)  RTMemTmpAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW;
     128RTDECL(void *)  RTMemTmpAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW_PROTO;
    129129
    130130/**
     
    133133 * @param   pv      Pointer to memory block.
    134134 */
    135 RTDECL(void)    RTMemTmpFree(void *pv) RT_NO_THROW;
     135RTDECL(void)    RTMemTmpFree(void *pv) RT_NO_THROW_PROTO;
    136136
    137137/** @}  */
     
    156156 * @param   pszTag  Allocation tag used for statistics and such.
    157157 */
    158 RTDECL(void *)  RTMemAllocTag(size_t cb, const char *pszTag) RT_NO_THROW;
     158RTDECL(void *)  RTMemAllocTag(size_t cb, const char *pszTag) RT_NO_THROW_PROTO;
    159159
    160160/**
     
    183183 * @param   pszTag  Allocation tag used for statistics and such.
    184184 */
    185 RTDECL(void *)  RTMemAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW;
     185RTDECL(void *)  RTMemAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW_PROTO;
    186186
    187187/**
     
    202202 * @param   pszTag              Allocation tag used for statistics and such.
    203203 */
    204 RTDECL(void *) RTMemAllocVarTag(size_t cbUnaligned, const char *pszTag) RT_NO_THROW;
     204RTDECL(void *) RTMemAllocVarTag(size_t cbUnaligned, const char *pszTag) RT_NO_THROW_PROTO;
    205205
    206206/**
     
    221221 * @param   pszTag              Allocation tag used for statistics and such.
    222222 */
    223 RTDECL(void *) RTMemAllocZVarTag(size_t cbUnaligned, const char *pszTag) RT_NO_THROW;
     223RTDECL(void *) RTMemAllocZVarTag(size_t cbUnaligned, const char *pszTag) RT_NO_THROW_PROTO;
    224224
    225225/**
     
    242242 * @param   pszTag  Allocation tag used for statistics and such.
    243243 */
    244 RTDECL(void *) RTMemDupTag(const void *pvSrc, size_t cb, const char *pszTag) RT_NO_THROW;
     244RTDECL(void *) RTMemDupTag(const void *pvSrc, size_t cb, const char *pszTag) RT_NO_THROW_PROTO;
    245245
    246246/**
     
    267267 * @param   pszTag  Allocation tag used for statistics and such.
    268268 */
    269 RTDECL(void *) RTMemDupExTag(const void *pvSrc, size_t cbSrc, size_t cbExtra, const char *pszTag) RT_NO_THROW;
     269RTDECL(void *) RTMemDupExTag(const void *pvSrc, size_t cbSrc, size_t cbExtra, const char *pszTag) RT_NO_THROW_PROTO;
    270270
    271271/**
     
    288288 * @param   pszTag  Allocation tag used for statistics and such.
    289289 */
    290 RTDECL(void *)  RTMemReallocTag(void *pvOld, size_t cbNew, const char *pszTag) RT_NO_THROW;
     290RTDECL(void *)  RTMemReallocTag(void *pvOld, size_t cbNew, const char *pszTag) RT_NO_THROW_PROTO;
    291291
    292292/**
     
    295295 * @param   pv      Pointer to memory block.
    296296 */
    297 RTDECL(void)    RTMemFree(void *pv) RT_NO_THROW;
     297RTDECL(void)    RTMemFree(void *pv) RT_NO_THROW_PROTO;
    298298
    299299
     
    362362 * @param   ppv                 Where to return the memory.
    363363 */
    364 RTDECL(int) RTMemAllocExTag(size_t cb, size_t cbAlignment, uint32_t fFlags, const char *pszTag, void **ppv) RT_NO_THROW;
     364RTDECL(int) RTMemAllocExTag(size_t cb, size_t cbAlignment, uint32_t fFlags, const char *pszTag, void **ppv) RT_NO_THROW_PROTO;
    365365
    366366/**
     
    375375 *                              RTMEMALLOCEX_FLAGS_EXEC if used.
    376376 */
    377 RTDECL(void) RTMemFreeEx(void *pv, size_t cb) RT_NO_THROW;
     377RTDECL(void) RTMemFreeEx(void *pv, size_t cb) RT_NO_THROW_PROTO;
    378378
    379379
     
    396396 * @param   pszTag  Allocation tag used for statistics and such.
    397397 */
    398 RTDECL(void *)  RTMemExecAllocTag(size_t cb, const char *pszTag) RT_NO_THROW;
     398RTDECL(void *)  RTMemExecAllocTag(size_t cb, const char *pszTag) RT_NO_THROW_PROTO;
    399399
    400400/**
     
    404404 * @param   cb      The allocation size.
    405405 */
    406 RTDECL(void)    RTMemExecFree(void *pv, size_t cb) RT_NO_THROW;
     406RTDECL(void)    RTMemExecFree(void *pv, size_t cb) RT_NO_THROW_PROTO;
    407407
    408408#if defined(IN_RING0) && defined(RT_ARCH_AMD64) && defined(RT_OS_LINUX)
     
    422422 * @param   cb          The size of the memory block.
    423423 */
    424 RTR0DECL(int) RTR0MemExecDonate(void *pvMemory, size_t cb) RT_NO_THROW;
     424RTR0DECL(int) RTR0MemExecDonate(void *pvMemory, size_t cb) RT_NO_THROW_PROTO;
    425425#endif /* R0+AMD64+LINUX */
    426426
     
    442442 * @param   pszTag  Allocation tag used for statistics and such.
    443443 */
    444 RTDECL(void *) RTMemPageAllocTag(size_t cb, const char *pszTag) RT_NO_THROW;
     444RTDECL(void *) RTMemPageAllocTag(size_t cb, const char *pszTag) RT_NO_THROW_PROTO;
    445445
    446446/**
     
    461461 * @param   pszTag  Allocation tag used for statistics and such.
    462462 */
    463 RTDECL(void *) RTMemPageAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW;
     463RTDECL(void *) RTMemPageAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW_PROTO;
    464464
    465465/**
     
    471471 *                  Ignored if @a pv is NULL.
    472472 */
    473 RTDECL(void) RTMemPageFree(void *pv, size_t cb) RT_NO_THROW;
     473RTDECL(void) RTMemPageFree(void *pv, size_t cb) RT_NO_THROW_PROTO;
    474474
    475475/** Page level protection flags for RTMemProtect().
     
    494494 * @param   fProtect    The new protection, a combination of the RTMEM_PROT_* defines.
    495495 */
    496 RTDECL(int) RTMemProtect(void *pv, size_t cb, unsigned fProtect) RT_NO_THROW;
     496RTDECL(int) RTMemProtect(void *pv, size_t cb, unsigned fProtect) RT_NO_THROW_PROTO;
    497497
    498498/**
     
    504504 * @param   cMinPasses  The minimum number of passes to make.
    505505 */
    506 RTDECL(void) RTMemWipeThoroughly(void *pv, size_t cb, size_t cMinPasses) RT_NO_THROW;
     506RTDECL(void) RTMemWipeThoroughly(void *pv, size_t cb, size_t cMinPasses) RT_NO_THROW_PROTO;
    507507
    508508#ifdef IN_RING0
     
    517517 *                  rounded up to PAGE_SIZE.
    518518 */
    519 RTR0DECL(void *) RTMemContAlloc(PRTCCPHYS pPhys, size_t cb) RT_NO_THROW;
     519RTR0DECL(void *) RTMemContAlloc(PRTCCPHYS pPhys, size_t cb) RT_NO_THROW_PROTO;
    520520
    521521/**
     
    525525 * @param   cb      The cb parameter passed to RTMemContAlloc().
    526526 */
    527 RTR0DECL(void) RTMemContFree(void *pv, size_t cb) RT_NO_THROW;
     527RTR0DECL(void) RTMemContFree(void *pv, size_t cb) RT_NO_THROW_PROTO;
    528528
    529529/**
     
    637637 * @param   pszTag  Allocation tag used for statistics and such.
    638638 */
    639 RTDECL(void *)  RTMemEfTmpAlloc(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW;
     639RTDECL(void *)  RTMemEfTmpAlloc(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_PROTO;
    640640
    641641/**
     
    647647 * @param   pszTag  Allocation tag used for statistics and such.
    648648 */
    649 RTDECL(void *)  RTMemEfTmpAllocZ(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW;
     649RTDECL(void *)  RTMemEfTmpAllocZ(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_PROTO;
    650650
    651651/**
     
    654654 * @param   pv      Pointer to memory block.
    655655 */
    656 RTDECL(void)    RTMemEfTmpFree(void *pv, RT_SRC_POS_DECL) RT_NO_THROW;
     656RTDECL(void)    RTMemEfTmpFree(void *pv, RT_SRC_POS_DECL) RT_NO_THROW_PROTO;
    657657
    658658/**
     
    664664 * @param   pszTag  Allocation tag used for statistics and such.
    665665 */
    666 RTDECL(void *)  RTMemEfAlloc(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW;
     666RTDECL(void *)  RTMemEfAlloc(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_PROTO;
    667667
    668668/**
     
    674674 * @param   pszTag  Allocation tag used for statistics and such.
    675675 */
    676 RTDECL(void *)  RTMemEfAllocZ(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW;
     676RTDECL(void *)  RTMemEfAllocZ(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_PROTO;
    677677
    678678/**
     
    684684 * @param   pszTag  Allocation tag used for statistics and such.
    685685 */
    686 RTDECL(void *)  RTMemEfAllocVar(size_t cbUnaligned, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW;
     686RTDECL(void *)  RTMemEfAllocVar(size_t cbUnaligned, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_PROTO;
    687687
    688688/**
     
    694694 * @param   pszTag  Allocation tag used for statistics and such.
    695695 */
    696 RTDECL(void *)  RTMemEfAllocZVar(size_t cbUnaligned, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW;
     696RTDECL(void *)  RTMemEfAllocZVar(size_t cbUnaligned, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_PROTO;
    697697
    698698/**
     
    705705 * @param   pszTag  Allocation tag used for statistics and such.
    706706 */
    707 RTDECL(void *)  RTMemEfRealloc(void *pvOld, size_t cbNew, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW;
     707RTDECL(void *)  RTMemEfRealloc(void *pvOld, size_t cbNew, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_PROTO;
    708708
    709709/**
     
    712712 * @param   pv      Pointer to memory block.
    713713 */
    714 RTDECL(void)    RTMemEfFree(void *pv, RT_SRC_POS_DECL) RT_NO_THROW;
     714RTDECL(void)    RTMemEfFree(void *pv, RT_SRC_POS_DECL) RT_NO_THROW_PROTO;
    715715
    716716/**
     
    723723 * @param   pszTag  Allocation tag used for statistics and such.
    724724 */
    725 RTDECL(void *) RTMemEfDup(const void *pvSrc, size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW;
     725RTDECL(void *) RTMemEfDup(const void *pvSrc, size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_PROTO;
    726726
    727727/**
     
    735735 * @param   pszTag  Allocation tag used for statistics and such.
    736736 */
    737 RTDECL(void *) RTMemEfDupEx(const void *pvSrc, size_t cbSrc, size_t cbExtra, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW;
     737RTDECL(void *) RTMemEfDupEx(const void *pvSrc, size_t cbSrc, size_t cbExtra, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_PROTO;
    738738
    739739/** @def RTMEM_WRAP_SOME_NEW_AND_DELETE_TO_EF
     
    756756            throw std::bad_alloc(); \
    757757        } \
    758         void *operator new(size_t cb, const std::nothrow_t &nothrow_constant) RT_NO_THROW \
     758        void *operator new(size_t cb, const std::nothrow_t &nothrow_constant) RT_NO_THROW_DEF \
    759759        { \
    760760            NOREF(nothrow_constant); \
     
    768768            throw std::bad_alloc(); \
    769769        } \
    770         void *operator new[](size_t cb, const std::nothrow_t &nothrow_constant) RT_NO_THROW \
     770        void *operator new[](size_t cb, const std::nothrow_t &nothrow_constant) RT_NO_THROW_DEF \
    771771        { \
    772772            NOREF(nothrow_constant); \
     
    774774        } \
    775775        \
    776         void operator delete(void *pv) RT_NO_THROW \
     776        void operator delete(void *pv) RT_NO_THROW_DEF \
    777777        { \
    778778            RTMemEfFree(pv, RT_SRC_POS); \
    779779        } \
    780         void operator delete(void *pv, const std::nothrow_t &nothrow_constant) RT_NO_THROW \
     780        void operator delete(void *pv, const std::nothrow_t &nothrow_constant) RT_NO_THROW_DEF \
    781781        { \
    782782            NOREF(nothrow_constant); \
    783783            RTMemEfFree(pv, RT_SRC_POS); \
    784784        } \
    785         void operator delete[](void *pv) RT_NO_THROW \
     785        void operator delete[](void *pv) RT_NO_THROW_DEF \
    786786        { \
    787787            RTMemEfFree(pv, RT_SRC_POS); \
    788788        } \
    789         void operator delete[](void *pv, const std::nothrow_t &nothrow_constant) RT_NO_THROW \
     789        void operator delete[](void *pv, const std::nothrow_t &nothrow_constant) RT_NO_THROW_DEF \
    790790        { \
    791791            NOREF(nothrow_constant); \
     
    868868 * @copydoc RTMemTmpAllocTag
    869869 */
    870 RTDECL(void *)  RTMemEfTmpAllocNP(size_t cb, const char *pszTag) RT_NO_THROW;
     870RTDECL(void *)  RTMemEfTmpAllocNP(size_t cb, const char *pszTag) RT_NO_THROW_PROTO;
    871871
    872872/**
     
    874874 * @copydoc RTMemTmpAllocZTag
    875875 */
    876 RTDECL(void *)  RTMemEfTmpAllocZNP(size_t cb, const char *pszTag) RT_NO_THROW;
     876RTDECL(void *)  RTMemEfTmpAllocZNP(size_t cb, const char *pszTag) RT_NO_THROW_PROTO;
    877877
    878878/**
     
    880880 * @copydoc RTMemTmpFreeTag
    881881 */
    882 RTDECL(void)    RTMemEfTmpFreeNP(void *pv) RT_NO_THROW;
     882RTDECL(void)    RTMemEfTmpFreeNP(void *pv) RT_NO_THROW_PROTO;
    883883
    884884/**
     
    886886 * @copydoc RTMemAllocTag
    887887 */
    888 RTDECL(void *)  RTMemEfAllocNP(size_t cb, const char *pszTag) RT_NO_THROW;
     888RTDECL(void *)  RTMemEfAllocNP(size_t cb, const char *pszTag) RT_NO_THROW_PROTO;
    889889
    890890/**
     
    892892 * @copydoc RTMemAllocZTag
    893893 */
    894 RTDECL(void *)  RTMemEfAllocZNP(size_t cb, const char *pszTag) RT_NO_THROW;
     894RTDECL(void *)  RTMemEfAllocZNP(size_t cb, const char *pszTag) RT_NO_THROW_PROTO;
    895895
    896896/**
     
    898898 * @copydoc RTMemAllocVarTag
    899899 */
    900 RTDECL(void *)  RTMemEfAllocVarNP(size_t cbUnaligned, const char *pszTag) RT_NO_THROW;
     900RTDECL(void *)  RTMemEfAllocVarNP(size_t cbUnaligned, const char *pszTag) RT_NO_THROW_PROTO;
    901901
    902902/**
     
    904904 * @copydoc RTMemAllocZVarTag
    905905 */
    906 RTDECL(void *)  RTMemEfAllocZVarNP(size_t cbUnaligned, const char *pszTag) RT_NO_THROW;
     906RTDECL(void *)  RTMemEfAllocZVarNP(size_t cbUnaligned, const char *pszTag) RT_NO_THROW_PROTO;
    907907
    908908/**
     
    910910 * @copydoc RTMemReallocTag
    911911 */
    912 RTDECL(void *)  RTMemEfReallocNP(void *pvOld, size_t cbNew, const char *pszTag) RT_NO_THROW;
     912RTDECL(void *)  RTMemEfReallocNP(void *pvOld, size_t cbNew, const char *pszTag) RT_NO_THROW_PROTO;
    913913
    914914/**
     
    916916 * @copydoc RTMemFree
    917917 */
    918 RTDECL(void)    RTMemEfFreeNP(void *pv) RT_NO_THROW;
     918RTDECL(void)    RTMemEfFreeNP(void *pv) RT_NO_THROW_PROTO;
    919919
    920920/**
     
    922922 * @copydoc RTMemDupExTag
    923923 */
    924 RTDECL(void *) RTMemEfDupNP(const void *pvSrc, size_t cb, const char *pszTag) RT_NO_THROW;
     924RTDECL(void *) RTMemEfDupNP(const void *pvSrc, size_t cb, const char *pszTag) RT_NO_THROW_PROTO;
    925925
    926926/**
     
    928928 * @copydoc RTMemDupExTag
    929929 */
    930 RTDECL(void *) RTMemEfDupExNP(const void *pvSrc, size_t cbSrc, size_t cbExtra, const char *pszTag) RT_NO_THROW;
     930RTDECL(void *) RTMemEfDupExNP(const void *pvSrc, size_t cbSrc, size_t cbExtra, const char *pszTag) RT_NO_THROW_PROTO;
    931931
    932932/** @} */
  • trunk/include/iprt/mempool.h

    r56291 r57432  
    6262 * @param   cb              Size in bytes of the memory block to allocated.
    6363 */
    64 RTDECL(void *) RTMemPoolAlloc(RTMEMPOOL hMemPool, size_t cb) RT_NO_THROW;
     64RTDECL(void *) RTMemPoolAlloc(RTMEMPOOL hMemPool, size_t cb) RT_NO_THROW_PROTO;
    6565
    6666/**
     
    7777 * @param   cb              Size in bytes of the memory block to allocated.
    7878 */
    79 RTDECL(void *) RTMemPoolAllocZ(RTMEMPOOL hMemPool, size_t cb) RT_NO_THROW;
     79RTDECL(void *) RTMemPoolAllocZ(RTMEMPOOL hMemPool, size_t cb) RT_NO_THROW_PROTO;
    8080
    8181/**
     
    8989 * @param   cb              The amount of memory to duplicate.
    9090 */
    91 RTDECL(void *) RTMemPoolDup(RTMEMPOOL hMemPool, const void *pvSrc, size_t cb) RT_NO_THROW;
     91RTDECL(void *) RTMemPoolDup(RTMEMPOOL hMemPool, const void *pvSrc, size_t cb) RT_NO_THROW_PROTO;
    9292
    9393/**
     
    103103 * @param   cbExtra         The amount of extra memory to allocate and zero.
    104104 */
    105 RTDECL(void *) RTMemPoolDupEx(RTMEMPOOL hMemPool, const void *pvSrc, size_t cbSrc, size_t cbExtra) RT_NO_THROW;
     105RTDECL(void *) RTMemPoolDupEx(RTMEMPOOL hMemPool, const void *pvSrc, size_t cbSrc, size_t cbExtra) RT_NO_THROW_PROTO;
    106106
    107107/**
     
    115115 * @param   cbNew           The new block size (in bytes).
    116116 */
    117 RTDECL(void *) RTMemPoolRealloc(RTMEMPOOL hMemPool, void *pvOld, size_t cbNew) RT_NO_THROW;
     117RTDECL(void *) RTMemPoolRealloc(RTMEMPOOL hMemPool, void *pvOld, size_t cbNew) RT_NO_THROW_PROTO;
    118118
    119119/**
     
    128128 *          function to simplify code migration.
    129129 */
    130 RTDECL(void) RTMemPoolFree(RTMEMPOOL hMemPool, void *pv) RT_NO_THROW;
     130RTDECL(void) RTMemPoolFree(RTMEMPOOL hMemPool, void *pv) RT_NO_THROW_PROTO;
    131131
    132132/**
     
    137137 * @param   pv              Pointer to memory block.
    138138 */
    139 RTDECL(uint32_t) RTMemPoolRetain(void *pv) RT_NO_THROW;
     139RTDECL(uint32_t) RTMemPoolRetain(void *pv) RT_NO_THROW_PROTO;
    140140
    141141/**
     
    149149 * @param   pv              Pointer to memory block.
    150150 */
    151 RTDECL(uint32_t) RTMemPoolRelease(RTMEMPOOL hMemPool, void *pv) RT_NO_THROW;
     151RTDECL(uint32_t) RTMemPoolRelease(RTMEMPOOL hMemPool, void *pv) RT_NO_THROW_PROTO;
    152152
    153153/**
     
    157157 * @param   pv              Pointer to memory block.
    158158 */
    159 RTDECL(uint32_t) RTMemPoolRefCount(void *pv) RT_NO_THROW;
     159RTDECL(uint32_t) RTMemPoolRefCount(void *pv) RT_NO_THROW_PROTO;
    160160
    161161
  • trunk/include/iprt/memsafer.h

    r56291 r57432  
    108108 * @param   pszTag      Allocation tag used for statistics and such.
    109109 */
    110 RTDECL(int) RTMemSaferAllocZExTag(void **ppvNew, size_t cb, uint32_t fFlags, const char *pszTag) RT_NO_THROW;
     110RTDECL(int) RTMemSaferAllocZExTag(void **ppvNew, size_t cb, uint32_t fFlags, const char *pszTag) RT_NO_THROW_PROTO;
    111111
    112112/**
     
    134134 * @param   pszTag      Allocation tag used for statistics and such.
    135135 */
    136 RTDECL(void *) RTMemSaferAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW;
     136RTDECL(void *) RTMemSaferAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW_PROTO;
    137137
    138138/**
     
    168168 * @param   pszTag      Allocation tag used for statistics and such.
    169169 */
    170 RTDECL(int) RTMemSaferReallocZExTag(size_t cbOld, void *pvOld, size_t cbNew, void **ppvNew, uint32_t fFlags, const char *pszTag) RT_NO_THROW;
     170RTDECL(int) RTMemSaferReallocZExTag(size_t cbOld, void *pvOld, size_t cbNew, void **ppvNew, uint32_t fFlags, const char *pszTag) RT_NO_THROW_PROTO;
    171171
    172172/**
     
    207207 * @param   pszTag      Allocation tag used for statistics and such.
    208208 */
    209 RTDECL(void *) RTMemSaferReallocZTag(size_t cbOld, void *pvOld, size_t cbNew, const char *pszTag) RT_NO_THROW;
     209RTDECL(void *) RTMemSaferReallocZTag(size_t cbOld, void *pvOld, size_t cbNew, const char *pszTag) RT_NO_THROW_PROTO;
    210210
    211211/**
     
    236236 * @param   cb          The allocation size.
    237237 */
    238 RTDECL(void) RTMemSaferFree(void *pv, size_t cb) RT_NO_THROW;
     238RTDECL(void) RTMemSaferFree(void *pv, size_t cb) RT_NO_THROW_PROTO;
    239239
    240240/** @}  */
  • trunk/include/iprt/rand.h

    r56291 r57432  
    4343 * @param   cb  Number of bytes to generate.
    4444 */
    45 RTDECL(void) RTRandBytes(void *pv, size_t cb) RT_NO_THROW;
     45RTDECL(void) RTRandBytes(void *pv, size_t cb) RT_NO_THROW_PROTO;
    4646
    4747/**
     
    5252 * @param   i32Last     Last number in the set.
    5353 */
    54 RTDECL(int32_t) RTRandS32Ex(int32_t i32First, int32_t i32Last) RT_NO_THROW;
     54RTDECL(int32_t) RTRandS32Ex(int32_t i32First, int32_t i32Last) RT_NO_THROW_PROTO;
    5555
    5656/**
     
    5959 * @returns The random number.
    6060 */
    61 RTDECL(int32_t) RTRandS32(void) RT_NO_THROW;
     61RTDECL(int32_t) RTRandS32(void) RT_NO_THROW_PROTO;
    6262
    6363/**
     
    6868 * @param   u32Last     Last number in the set.
    6969 */
    70 RTDECL(uint32_t) RTRandU32Ex(uint32_t u32First, uint32_t u32Last) RT_NO_THROW;
     70RTDECL(uint32_t) RTRandU32Ex(uint32_t u32First, uint32_t u32Last) RT_NO_THROW_PROTO;
    7171
    7272/**
     
    7575 * @returns The random number.
    7676 */
    77 RTDECL(uint32_t) RTRandU32(void) RT_NO_THROW;
     77RTDECL(uint32_t) RTRandU32(void) RT_NO_THROW_PROTO;
    7878
    7979/**
     
    8484 * @param   i64Last     Last number in the set.
    8585 */
    86 RTDECL(int64_t) RTRandS64Ex(int64_t i64First, int64_t i64Last) RT_NO_THROW;
     86RTDECL(int64_t) RTRandS64Ex(int64_t i64First, int64_t i64Last) RT_NO_THROW_PROTO;
    8787
    8888/**
     
    9191 * @returns The random number.
    9292 */
    93 RTDECL(int64_t) RTRandS64(void) RT_NO_THROW;
     93RTDECL(int64_t) RTRandS64(void) RT_NO_THROW_PROTO;
    9494
    9595/**
     
    100100 * @param   u64Last     Last number in the set.
    101101 */
    102 RTDECL(uint64_t) RTRandU64Ex(uint64_t u64First, uint64_t u64Last) RT_NO_THROW;
     102RTDECL(uint64_t) RTRandU64Ex(uint64_t u64First, uint64_t u64Last) RT_NO_THROW_PROTO;
    103103
    104104/**
     
    107107 * @returns The random number.
    108108 */
    109 RTDECL(uint64_t) RTRandU64(void) RT_NO_THROW;
     109RTDECL(uint64_t) RTRandU64(void) RT_NO_THROW_PROTO;
    110110
    111111
     
    117117 *                      generator.
    118118 */
    119 RTDECL(int) RTRandAdvCreate(PRTRAND phRand) RT_NO_THROW;
     119RTDECL(int) RTRandAdvCreate(PRTRAND phRand) RT_NO_THROW_PROTO;
    120120
    121121/**
     
    125125 * @param   phRand      Where to store the handle to the generator.
    126126 */
    127 RTDECL(int) RTRandAdvCreatePseudo(PRTRAND phRand) RT_NO_THROW;
     127RTDECL(int) RTRandAdvCreatePseudo(PRTRAND phRand) RT_NO_THROW_PROTO;
    128128
    129129/**
     
    133133 * @param   phRand      Where to store the handle to the generator.
    134134 */
    135 RTDECL(int) RTRandAdvCreateParkMiller(PRTRAND phRand) RT_NO_THROW;
     135RTDECL(int) RTRandAdvCreateParkMiller(PRTRAND phRand) RT_NO_THROW_PROTO;
    136136
    137137/**
     
    148148 * @remarks Think /dev/urandom.
    149149 */
    150 RTDECL(int) RTRandAdvCreateSystemFaster(PRTRAND phRand) RT_NO_THROW;
     150RTDECL(int) RTRandAdvCreateSystemFaster(PRTRAND phRand) RT_NO_THROW_PROTO;
    151151
    152152/**
     
    167167 * @remarks Think /dev/random.
    168168 */
    169 RTDECL(int) RTRandAdvCreateSystemTruer(PRTRAND phRand) RT_NO_THROW;
     169RTDECL(int) RTRandAdvCreateSystemTruer(PRTRAND phRand) RT_NO_THROW_PROTO;
    170170
    171171/**
     
    175175 * @param   hRand       Handle to the random number generator.
    176176 */
    177 RTDECL(int) RTRandAdvDestroy(RTRAND hRand) RT_NO_THROW;
     177RTDECL(int) RTRandAdvDestroy(RTRAND hRand) RT_NO_THROW_PROTO;
    178178
    179179/**
     
    190190 * @param   u64Seed     Seed.
    191191 */
    192 RTDECL(int) RTRandAdvSeed(RTRAND hRand, uint64_t u64Seed) RT_NO_THROW;
     192RTDECL(int) RTRandAdvSeed(RTRAND hRand, uint64_t u64Seed) RT_NO_THROW_PROTO;
    193193
    194194/**
     
    212212 *                      terminator, thus the 'cb' instead of 'cch').
    213213 */
    214 RTDECL(int) RTRandAdvSaveState(RTRAND hRand, char *pszState, size_t *pcbState) RT_NO_THROW;
     214RTDECL(int) RTRandAdvSaveState(RTRAND hRand, char *pszState, size_t *pcbState) RT_NO_THROW_PROTO;
    215215
    216216/**
     
    226226 * @param   pszState    The state to load.
    227227 */
    228 RTDECL(int) RTRandAdvRestoreState(RTRAND hRand, char const *pszState) RT_NO_THROW;
     228RTDECL(int) RTRandAdvRestoreState(RTRAND hRand, char const *pszState) RT_NO_THROW_PROTO;
    229229
    230230/**
     
    235235 * @param   cb  Number of bytes to generate.
    236236 */
    237 RTDECL(void) RTRandAdvBytes(RTRAND hRand, void *pv, size_t cb) RT_NO_THROW;
     237RTDECL(void) RTRandAdvBytes(RTRAND hRand, void *pv, size_t cb) RT_NO_THROW_PROTO;
    238238
    239239/**
     
    245245 * @param   i32Last     Last number in the set.
    246246 */
    247 RTDECL(int32_t) RTRandAdvS32Ex(RTRAND hRand, int32_t i32First, int32_t i32Last) RT_NO_THROW;
     247RTDECL(int32_t) RTRandAdvS32Ex(RTRAND hRand, int32_t i32First, int32_t i32Last) RT_NO_THROW_PROTO;
    248248
    249249/**
     
    253253 * @param   hRand       Handle to the random number generator.
    254254 */
    255 RTDECL(int32_t) RTRandAdvS32(RTRAND hRand) RT_NO_THROW;
     255RTDECL(int32_t) RTRandAdvS32(RTRAND hRand) RT_NO_THROW_PROTO;
    256256
    257257/**
     
    263263 * @param   u32Last     Last number in the set.
    264264 */
    265 RTDECL(uint32_t) RTRandAdvU32Ex(RTRAND hRand, uint32_t u32First, uint32_t u32Last) RT_NO_THROW;
     265RTDECL(uint32_t) RTRandAdvU32Ex(RTRAND hRand, uint32_t u32First, uint32_t u32Last) RT_NO_THROW_PROTO;
    266266
    267267/**
     
    271271 * @param   hRand       Handle to the random number generator.
    272272 */
    273 RTDECL(uint32_t) RTRandAdvU32(RTRAND hRand) RT_NO_THROW;
     273RTDECL(uint32_t) RTRandAdvU32(RTRAND hRand) RT_NO_THROW_PROTO;
    274274
    275275/**
     
    281281 * @param   i64Last     Last number in the set.
    282282 */
    283 RTDECL(int64_t) RTRandAdvS64Ex(RTRAND hRand, int64_t i64First, int64_t i64Last) RT_NO_THROW;
     283RTDECL(int64_t) RTRandAdvS64Ex(RTRAND hRand, int64_t i64First, int64_t i64Last) RT_NO_THROW_PROTO;
    284284
    285285/**
     
    288288 * @returns The random number.
    289289 */
    290 RTDECL(int64_t) RTRandAdvS64(RTRAND hRand) RT_NO_THROW;
     290RTDECL(int64_t) RTRandAdvS64(RTRAND hRand) RT_NO_THROW_PROTO;
    291291
    292292/**
     
    298298 * @param   u64Last     Last number in the set.
    299299 */
    300 RTDECL(uint64_t) RTRandAdvU64Ex(RTRAND hRand, uint64_t u64First, uint64_t u64Last) RT_NO_THROW;
     300RTDECL(uint64_t) RTRandAdvU64Ex(RTRAND hRand, uint64_t u64First, uint64_t u64Last) RT_NO_THROW_PROTO;
    301301
    302302/**
     
    306306 * @param   hRand       Handle to the random number generator.
    307307 */
    308 RTDECL(uint64_t) RTRandAdvU64(RTRAND hRand) RT_NO_THROW;
     308RTDECL(uint64_t) RTRandAdvU64(RTRAND hRand) RT_NO_THROW_PROTO;
    309309
    310310
  • trunk/include/iprt/zip.h

    r56291 r57432  
    196196RTDECL(int)     RTZipBlockCompress(RTZIPTYPE enmType, RTZIPLEVEL enmLevel, uint32_t fFlags,
    197197                                   void const *pvSrc, size_t cbSrc,
    198                                    void *pvDst, size_t cbDst, size_t *pcbDstActual) RT_NO_THROW;
     198                                   void *pvDst, size_t cbDst, size_t *pcbDstActual) RT_NO_THROW_PROTO;
    199199
    200200
     
    215215RTDECL(int)     RTZipBlockDecompress(RTZIPTYPE enmType, uint32_t fFlags,
    216216                                     void const *pvSrc, size_t cbSrc, size_t *pcbSrcActual,
    217                                      void *pvDst, size_t cbDst, size_t *pcbDstActual) RT_NO_THROW;
     217                                     void *pvDst, size_t cbDst, size_t *pcbDstActual) RT_NO_THROW_PROTO;
    218218
    219219
  • trunk/src/VBox/Runtime/common/alloc/alloc.cpp

    r57358 r57432  
    4040
    4141
    42 RTDECL(void *) RTMemDupTag(const void *pvSrc, size_t cb, const char *pszTag) RT_NO_THROW
     42RTDECL(void *) RTMemDupTag(const void *pvSrc, size_t cb, const char *pszTag) RT_NO_THROW_DEF
    4343{
    4444    void *pvDst = RTMemAllocTag(cb, pszTag);
     
    5050
    5151
    52 RTDECL(void *) RTMemDupExTag(const void *pvSrc, size_t cbSrc, size_t cbExtra, const char *pszTag) RT_NO_THROW
     52RTDECL(void *) RTMemDupExTag(const void *pvSrc, size_t cbSrc, size_t cbExtra, const char *pszTag) RT_NO_THROW_DEF
    5353{
    5454    void *pvDst = RTMemAllocTag(cbSrc + cbExtra, pszTag);
  • trunk/src/VBox/Runtime/common/misc/RTMemWipeThoroughly.cpp

    r57358 r57432  
    3737
    3838
    39 RTDECL(void) RTMemWipeThoroughly(void *pv, size_t cb, size_t cMinPasses) RT_NO_THROW
     39RTDECL(void) RTMemWipeThoroughly(void *pv, size_t cb, size_t cMinPasses) RT_NO_THROW_DEF
    4040{
    4141    size_t cPasses = RT_MIN(cMinPasses, 6);
  • trunk/src/VBox/Runtime/common/rand/rand.cpp

    r57358 r57432  
    104104
    105105
    106 RTDECL(void) RTRandBytes(void *pv, size_t cb) RT_NO_THROW
     106RTDECL(void) RTRandBytes(void *pv, size_t cb) RT_NO_THROW_DEF
    107107{
    108108    RTOnceEx(&g_rtRandOnce, rtRandInitOnce, rtRandTermOnce, NULL);
     
    112112
    113113
    114 RTDECL(uint32_t) RTRandU32Ex(uint32_t u32First, uint32_t u32Last) RT_NO_THROW
     114RTDECL(uint32_t) RTRandU32Ex(uint32_t u32First, uint32_t u32Last) RT_NO_THROW_DEF
    115115{
    116116    RTOnceEx(&g_rtRandOnce, rtRandInitOnce, rtRandTermOnce, NULL);
     
    120120
    121121
    122 RTDECL(uint32_t) RTRandU32(void) RT_NO_THROW
     122RTDECL(uint32_t) RTRandU32(void) RT_NO_THROW_DEF
    123123{
    124124    RTOnceEx(&g_rtRandOnce, rtRandInitOnce, rtRandTermOnce, NULL);
     
    128128
    129129
    130 RTDECL(int32_t) RTRandS32Ex(int32_t i32First, int32_t i32Last) RT_NO_THROW
     130RTDECL(int32_t) RTRandS32Ex(int32_t i32First, int32_t i32Last) RT_NO_THROW_DEF
    131131{
    132132    RTOnceEx(&g_rtRandOnce, rtRandInitOnce, rtRandTermOnce, NULL);
     
    136136
    137137
    138 RTDECL(int32_t) RTRandS32(void) RT_NO_THROW
     138RTDECL(int32_t) RTRandS32(void) RT_NO_THROW_DEF
    139139{
    140140    RTOnceEx(&g_rtRandOnce, rtRandInitOnce, rtRandTermOnce, NULL);
     
    144144
    145145
    146 RTDECL(uint64_t) RTRandU64Ex(uint64_t u64First, uint64_t u64Last) RT_NO_THROW
     146RTDECL(uint64_t) RTRandU64Ex(uint64_t u64First, uint64_t u64Last) RT_NO_THROW_DEF
    147147{
    148148    RTOnceEx(&g_rtRandOnce, rtRandInitOnce, rtRandTermOnce, NULL);
     
    152152
    153153
    154 RTDECL(uint64_t) RTRandU64(void) RT_NO_THROW
     154RTDECL(uint64_t) RTRandU64(void) RT_NO_THROW_DEF
    155155{
    156156    RTOnceEx(&g_rtRandOnce, rtRandInitOnce, rtRandTermOnce, NULL);
     
    160160
    161161
    162 RTDECL(int64_t) RTRandS64Ex(int64_t i64First, int64_t i64Last) RT_NO_THROW
     162RTDECL(int64_t) RTRandS64Ex(int64_t i64First, int64_t i64Last) RT_NO_THROW_DEF
    163163{
    164164    RTOnceEx(&g_rtRandOnce, rtRandInitOnce, rtRandTermOnce, NULL);
     
    168168
    169169
    170 RTDECL(int64_t) RTRandS64(void) RT_NO_THROW
     170RTDECL(int64_t) RTRandS64(void) RT_NO_THROW_DEF
    171171{
    172172    RTOnceEx(&g_rtRandOnce, rtRandInitOnce, rtRandTermOnce, NULL);
  • trunk/src/VBox/Runtime/common/rand/randadv.cpp

    r57358 r57432  
    3939
    4040
    41 RTDECL(int) RTRandAdvDestroy(RTRAND hRand) RT_NO_THROW
     41RTDECL(int) RTRandAdvDestroy(RTRAND hRand) RT_NO_THROW_DEF
    4242{
    4343    /* Validate. */
     
    5454
    5555
    56 RTDECL(int) RTRandAdvSeed(RTRAND hRand, uint64_t u64Seed) RT_NO_THROW
     56RTDECL(int) RTRandAdvSeed(RTRAND hRand, uint64_t u64Seed) RT_NO_THROW_DEF
    5757{
    5858    /* Validate. */
     
    6767
    6868
    69 RTDECL(int) RTRandAdvSaveState(RTRAND hRand, char *pszState, size_t *pcbState) RT_NO_THROW
     69RTDECL(int) RTRandAdvSaveState(RTRAND hRand, char *pszState, size_t *pcbState) RT_NO_THROW_DEF
    7070{
    7171    /* Validate. */
     
    8282
    8383
    84 RTDECL(int) RTRandAdvRestoreState(RTRAND hRand, char const *pszState) RT_NO_THROW
     84RTDECL(int) RTRandAdvRestoreState(RTRAND hRand, char const *pszState) RT_NO_THROW_DEF
    8585{
    8686    /* Validate. */
     
    9696
    9797
    98 RTDECL(void) RTRandAdvBytes(RTRAND hRand, void *pv, size_t cb) RT_NO_THROW
     98RTDECL(void) RTRandAdvBytes(RTRAND hRand, void *pv, size_t cb) RT_NO_THROW_DEF
    9999{
    100100    /* Validate. */
     
    110110
    111111
    112 RTDECL(int32_t) RTRandAdvS32Ex(RTRAND hRand, int32_t i32First, int32_t i32Last) RT_NO_THROW
     112RTDECL(int32_t) RTRandAdvS32Ex(RTRAND hRand, int32_t i32First, int32_t i32Last) RT_NO_THROW_DEF
    113113{
    114114    /* Validate. */
     
    123123
    124124
    125 RTDECL(int32_t) RTRandAdvS32(RTRAND hRand) RT_NO_THROW
     125RTDECL(int32_t) RTRandAdvS32(RTRAND hRand) RT_NO_THROW_DEF
    126126{
    127127    /* Validate. */
     
    136136
    137137
    138 RTDECL(uint32_t) RTRandAdvU32Ex(RTRAND hRand, uint32_t u32First, uint32_t u32Last) RT_NO_THROW
     138RTDECL(uint32_t) RTRandAdvU32Ex(RTRAND hRand, uint32_t u32First, uint32_t u32Last) RT_NO_THROW_DEF
    139139{
    140140    /* Validate. */
     
    149149
    150150
    151 RTDECL(uint32_t) RTRandAdvU32(RTRAND hRand) RT_NO_THROW
     151RTDECL(uint32_t) RTRandAdvU32(RTRAND hRand) RT_NO_THROW_DEF
    152152{
    153153    /* Validate. */
     
    162162
    163163
    164 RTDECL(int64_t) RTRandAdvS64Ex(RTRAND hRand, int64_t i64First, int64_t i64Last) RT_NO_THROW
     164RTDECL(int64_t) RTRandAdvS64Ex(RTRAND hRand, int64_t i64First, int64_t i64Last) RT_NO_THROW_DEF
    165165{
    166166    /* Validate. */
     
    175175
    176176
    177 RTDECL(int64_t) RTRandAdvS64(RTRAND hRand) RT_NO_THROW
     177RTDECL(int64_t) RTRandAdvS64(RTRAND hRand) RT_NO_THROW_DEF
    178178{
    179179    /* Validate. */
     
    188188
    189189
    190 RTDECL(uint64_t) RTRandAdvU64Ex(RTRAND hRand, uint64_t u64First, uint64_t u64Last) RT_NO_THROW
     190RTDECL(uint64_t) RTRandAdvU64Ex(RTRAND hRand, uint64_t u64First, uint64_t u64Last) RT_NO_THROW_DEF
    191191{
    192192    /* Validate. */
     
    201201
    202202
    203 RTDECL(uint64_t) RTRandAdvU64(RTRAND hRand) RT_NO_THROW
     203RTDECL(uint64_t) RTRandAdvU64(RTRAND hRand) RT_NO_THROW_DEF
    204204{
    205205    /* Validate. */
  • trunk/src/VBox/Runtime/common/rand/randparkmiller.cpp

    r57358 r57432  
    188188
    189189
    190 RTDECL(int) RTRandAdvCreateParkMiller(PRTRAND phRand) RT_NO_THROW
     190RTDECL(int) RTRandAdvCreateParkMiller(PRTRAND phRand) RT_NO_THROW_DEF
    191191{
    192192    PRTRANDINT pThis = (PRTRANDINT)RTMemAlloc(sizeof(*pThis));
  • trunk/src/VBox/Runtime/common/zip/zip.cpp

    r57358 r57432  
    17181718RTDECL(int) RTZipBlockCompress(RTZIPTYPE enmType, RTZIPLEVEL enmLevel, uint32_t fFlags,
    17191719                               void const *pvSrc, size_t cbSrc,
    1720                                void *pvDst, size_t cbDst, size_t *pcbDstActual) RT_NO_THROW
     1720                               void *pvDst, size_t cbDst, size_t *pcbDstActual) RT_NO_THROW_DEF
    17211721{
    17221722    /* input validation - the crash and burn approach as speed is essential here. */
     
    18341834RTDECL(int) RTZipBlockDecompress(RTZIPTYPE enmType, uint32_t fFlags,
    18351835                                 void const *pvSrc, size_t cbSrc, size_t *pcbSrcActual,
    1836                                  void *pvDst, size_t cbDst, size_t *pcbDstActual) RT_NO_THROW
     1836                                 void *pvDst, size_t cbDst, size_t *pcbDstActual) RT_NO_THROW_DEF
    18371837{
    18381838    /* input validation - the crash and burn approach as speed is essential here. */
  • trunk/src/VBox/Runtime/generic/RTRandAdvCreateSystemFaster-generic.cpp

    r57358 r57432  
    3535
    3636
    37 RTDECL(int) RTRandAdvCreateSystemFaster(PRTRAND phRand) RT_NO_THROW
     37RTDECL(int) RTRandAdvCreateSystemFaster(PRTRAND phRand) RT_NO_THROW_DEF
    3838{
    3939    NOREF(phRand);
  • trunk/src/VBox/Runtime/generic/RTRandAdvCreateSystemTruer-generic.cpp

    r57358 r57432  
    3535
    3636
    37 RTDECL(int) RTRandAdvCreateSystemTruer(PRTRAND phRand) RT_NO_THROW
     37RTDECL(int) RTRandAdvCreateSystemTruer(PRTRAND phRand) RT_NO_THROW_DEF
    3838{
    3939    NOREF(phRand);
  • trunk/src/VBox/Runtime/generic/mempool-generic.cpp

    r57358 r57432  
    244244
    245245
    246 RTDECL(void *) RTMemPoolAlloc(RTMEMPOOL hMemPool, size_t cb) RT_NO_THROW
     246RTDECL(void *) RTMemPoolAlloc(RTMEMPOOL hMemPool, size_t cb) RT_NO_THROW_DEF
    247247{
    248248    PRTMEMPOOLINT pMemPool = hMemPool;
     
    259259
    260260
    261 RTDECL(void *) RTMemPoolAllocZ(RTMEMPOOL hMemPool, size_t cb) RT_NO_THROW
     261RTDECL(void *) RTMemPoolAllocZ(RTMEMPOOL hMemPool, size_t cb) RT_NO_THROW_DEF
    262262{
    263263    PRTMEMPOOLINT pMemPool = hMemPool;
     
    274274
    275275
    276 RTDECL(void *) RTMemPoolDup(RTMEMPOOL hMemPool, const void *pvSrc, size_t cb) RT_NO_THROW
     276RTDECL(void *) RTMemPoolDup(RTMEMPOOL hMemPool, const void *pvSrc, size_t cb) RT_NO_THROW_DEF
    277277{
    278278    PRTMEMPOOLINT pMemPool = hMemPool;
     
    290290
    291291
    292 RTDECL(void *) RTMemPoolDupEx(RTMEMPOOL hMemPool, const void *pvSrc, size_t cbSrc, size_t cbExtra) RT_NO_THROW
     292RTDECL(void *) RTMemPoolDupEx(RTMEMPOOL hMemPool, const void *pvSrc, size_t cbSrc, size_t cbExtra) RT_NO_THROW_DEF
    293293{
    294294    PRTMEMPOOLINT pMemPool = hMemPool;
     
    308308
    309309
    310 RTDECL(void *) RTMemPoolRealloc(RTMEMPOOL hMemPool, void *pvOld, size_t cbNew) RT_NO_THROW
     310RTDECL(void *) RTMemPoolRealloc(RTMEMPOOL hMemPool, void *pvOld, size_t cbNew) RT_NO_THROW_DEF
    311311{
    312312    /*
     
    351351
    352352
    353 RTDECL(void) RTMemPoolFree(RTMEMPOOL hMemPool, void *pv) RT_NO_THROW
     353RTDECL(void) RTMemPoolFree(RTMEMPOOL hMemPool, void *pv) RT_NO_THROW_DEF
    354354{
    355355    RTMemPoolRelease(hMemPool, pv);
     
    358358
    359359
    360 RTDECL(uint32_t) RTMemPoolRetain(void *pv) RT_NO_THROW
     360RTDECL(uint32_t) RTMemPoolRetain(void *pv) RT_NO_THROW_DEF
    361361{
    362362    PRTMEMPOOLENTRY pEntry = (PRTMEMPOOLENTRY)pv - 1;
     
    371371
    372372
    373 RTDECL(uint32_t) RTMemPoolRelease(RTMEMPOOL hMemPool, void *pv) RT_NO_THROW
     373RTDECL(uint32_t) RTMemPoolRelease(RTMEMPOOL hMemPool, void *pv) RT_NO_THROW_DEF
    374374{
    375375    if (!pv)
     
    397397
    398398
    399 RTDECL(uint32_t) RTMemPoolRefCount(void *pv) RT_NO_THROW
     399RTDECL(uint32_t) RTMemPoolRefCount(void *pv) RT_NO_THROW_DEF
    400400{
    401401    PRTMEMPOOLENTRY pEntry = (PRTMEMPOOLENTRY)pv - 1;
  • trunk/src/VBox/Runtime/generic/memsafer-generic.cpp

    r57358 r57432  
    103103
    104104
    105 RTDECL(int) RTMemSaferAllocZExTag(void **ppvNew, size_t cb, uint32_t fFlags, const char *pszTag) RT_NO_THROW
     105RTDECL(int) RTMemSaferAllocZExTag(void **ppvNew, size_t cb, uint32_t fFlags, const char *pszTag) RT_NO_THROW_DEF
    106106{
    107107    AssertPtrReturn(ppvNew, VERR_INVALID_PARAMETER);
     
    144144
    145145
    146 RTDECL(void) RTMemSaferFree(void *pv, size_t cb) RT_NO_THROW
     146RTDECL(void) RTMemSaferFree(void *pv, size_t cb) RT_NO_THROW_DEF
    147147{
    148148    if (pv)
     
    160160
    161161
    162 RTDECL(int) RTMemSaferReallocZExTag(size_t cbOld, void *pvOld, size_t cbNew, void **ppvNew, uint32_t fFlags, const char *pszTag) RT_NO_THROW
     162RTDECL(int) RTMemSaferReallocZExTag(size_t cbOld, void *pvOld, size_t cbNew, void **ppvNew, uint32_t fFlags, const char *pszTag) RT_NO_THROW_DEF
    163163{
    164164    /*
     
    204204
    205205
    206 RTDECL(void *) RTMemSaferAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW
     206RTDECL(void *) RTMemSaferAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW_DEF
    207207{
    208208    void *pvNew = NULL;
     
    215215
    216216
    217 RTDECL(void *) RTMemSaferReallocZTag(size_t cbOld, void *pvOld, size_t cbNew, const char *pszTag) RT_NO_THROW
     217RTDECL(void *) RTMemSaferReallocZTag(size_t cbOld, void *pvOld, size_t cbNew, const char *pszTag) RT_NO_THROW_DEF
    218218{
    219219    void *pvNew = NULL;
  • trunk/src/VBox/Runtime/r0drv/alloc-r0drv.cpp

    r57358 r57432  
    9090
    9191
    92 RTDECL(void *)  RTMemTmpAllocTag(size_t cb, const char *pszTag) RT_NO_THROW
     92RTDECL(void *)  RTMemTmpAllocTag(size_t cb, const char *pszTag) RT_NO_THROW_DEF
    9393{
    9494    return RTMemAllocTag(cb, pszTag);
     
    9797
    9898
    99 RTDECL(void *)  RTMemTmpAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW
     99RTDECL(void *)  RTMemTmpAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW_DEF
    100100{
    101101    return RTMemAllocZTag(cb, pszTag);
     
    104104
    105105
    106 RTDECL(void)    RTMemTmpFree(void *pv) RT_NO_THROW
     106RTDECL(void)    RTMemTmpFree(void *pv) RT_NO_THROW_DEF
    107107{
    108108    return RTMemFree(pv);
     
    114114
    115115
    116 RTDECL(void *)  RTMemAllocTag(size_t cb, const char *pszTag) RT_NO_THROW
     116RTDECL(void *)  RTMemAllocTag(size_t cb, const char *pszTag) RT_NO_THROW_DEF
    117117{
    118118    PRTMEMHDR pHdr;
     
    133133
    134134
    135 RTDECL(void *)  RTMemAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW
     135RTDECL(void *)  RTMemAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW_DEF
    136136{
    137137    PRTMEMHDR pHdr;
     
    178178
    179179
    180 RTDECL(void *) RTMemReallocTag(void *pvOld, size_t cbNew, const char *pszTag) RT_NO_THROW
     180RTDECL(void *) RTMemReallocTag(void *pvOld, size_t cbNew, const char *pszTag) RT_NO_THROW_DEF
    181181{
    182182    PRTMEMHDR pHdrOld;
     
    244244
    245245
    246 RTDECL(void) RTMemFree(void *pv) RT_NO_THROW
     246RTDECL(void) RTMemFree(void *pv) RT_NO_THROW_DEF
    247247{
    248248    PRTMEMHDR pHdr;
     
    277277
    278278
    279 RTDECL(void *)    RTMemExecAllocTag(size_t cb, const char *pszTag) RT_NO_THROW
     279RTDECL(void *)    RTMemExecAllocTag(size_t cb, const char *pszTag) RT_NO_THROW_DEF
    280280{
    281281    PRTMEMHDR pHdr;
     
    300300
    301301
    302 RTDECL(void)      RTMemExecFree(void *pv, size_t cb) RT_NO_THROW
     302RTDECL(void)      RTMemExecFree(void *pv, size_t cb) RT_NO_THROW_DEF
    303303{
    304304    PRTMEMHDR pHdr;
     
    330330
    331331
    332 RTDECL(int) RTMemAllocExTag(size_t cb, size_t cbAlignment, uint32_t fFlags, const char *pszTag, void **ppv) RT_NO_THROW
     332RTDECL(int) RTMemAllocExTag(size_t cb, size_t cbAlignment, uint32_t fFlags, const char *pszTag, void **ppv) RT_NO_THROW_DEF
    333333{
    334334    uint32_t    fHdrFlags = RTMEMHDR_FLAG_ALLOC_EX;
     
    394394
    395395
    396 RTDECL(void) RTMemFreeEx(void *pv, size_t cb) RT_NO_THROW
     396RTDECL(void) RTMemFreeEx(void *pv, size_t cb) RT_NO_THROW_DEF
    397397{
    398398    PRTMEMHDR pHdr;
  • trunk/src/VBox/Runtime/r0drv/haiku/alloc-r0drv-haiku.c

    r57358 r57432  
    7474
    7575
    76 RTR0DECL(void *) RTMemContAlloc(PRTCCPHYS pPhys, size_t cb) RT_NO_THROW
     76RTR0DECL(void *) RTMemContAlloc(PRTCCPHYS pPhys, size_t cb) RT_NO_THROW_DEF
    7777{
    7878    /*
     
    108108
    109109
    110 RTR0DECL(void) RTMemContFree(void *pv, size_t cb) RT_NO_THROW
     110RTR0DECL(void) RTMemContFree(void *pv, size_t cb) RT_NO_THROW_DEF
    111111{
    112112    RT_ASSERT_PREEMPTIBLE();
  • trunk/src/VBox/Runtime/r3/alloc-ef-cpp.cpp

    r57358 r57432  
    7979
    8080
    81 void *RT_EF_CDECL operator new(RT_EF_SIZE_T cb, const std::nothrow_t &) RT_NO_THROW
     81void *RT_EF_CDECL operator new(RT_EF_SIZE_T cb, const std::nothrow_t &) RT_NO_THROW_DEF
    8282{
    8383    void *pv = rtR3MemAlloc("new nothrow", RTMEMTYPE_NEW, cb, cb, NULL, ASMReturnAddress(), NULL, 0, NULL);
     
    8686
    8787
    88 void RT_EF_CDECL operator delete(void *pv) RT_NO_THROW
     88void RT_EF_CDECL operator delete(void *pv) RT_NO_THROW_DEF
    8989{
    9090    rtR3MemFree("delete", RTMEMTYPE_DELETE, pv, ASMReturnAddress(), NULL, 0, NULL);
     
    9292
    9393
    94 void RT_EF_CDECL operator delete(void * pv, const std::nothrow_t &) RT_NO_THROW
     94void RT_EF_CDECL operator delete(void * pv, const std::nothrow_t &) RT_NO_THROW_DEF
    9595{
    9696    rtR3MemFree("delete nothrow", RTMEMTYPE_DELETE, pv, ASMReturnAddress(), NULL, 0, NULL);
     
    115115
    116116
    117 void * RT_EF_CDECL operator new[](RT_EF_SIZE_T cb, const std::nothrow_t &) RT_NO_THROW
     117void * RT_EF_CDECL operator new[](RT_EF_SIZE_T cb, const std::nothrow_t &) RT_NO_THROW_DEF
    118118{
    119119    void *pv = rtR3MemAlloc("new[] nothrow", RTMEMTYPE_NEW_ARRAY, cb, cb, NULL, ASMReturnAddress(), NULL, 0, NULL);
     
    122122
    123123
    124 void RT_EF_CDECL operator delete[](void * pv) RT_NO_THROW
     124void RT_EF_CDECL operator delete[](void * pv) RT_NO_THROW_DEF
    125125{
    126126    rtR3MemFree("delete[]", RTMEMTYPE_DELETE_ARRAY, pv, ASMReturnAddress(), NULL, 0, NULL);
     
    128128
    129129
    130 void RT_EF_CDECL operator delete[](void *pv, const std::nothrow_t &) RT_NO_THROW
     130void RT_EF_CDECL operator delete[](void *pv, const std::nothrow_t &) RT_NO_THROW_DEF
    131131{
    132132    rtR3MemFree("delete[] nothrow", RTMEMTYPE_DELETE_ARRAY, pv, ASMReturnAddress(), NULL, 0, NULL);
  • trunk/src/VBox/Runtime/r3/alloc-ef.cpp

    r57358 r57432  
    825825
    826826
    827 RTDECL(void *)  RTMemEfTmpAlloc(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW
     827RTDECL(void *)  RTMemEfTmpAlloc(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_DEF
    828828{
    829829    return rtR3MemAlloc("TmpAlloc", RTMEMTYPE_RTMEMALLOC, cb, cb, pszTag, ASMReturnAddress(), RT_SRC_POS_ARGS);
     
    831831
    832832
    833 RTDECL(void *)  RTMemEfTmpAllocZ(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW
     833RTDECL(void *)  RTMemEfTmpAllocZ(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_DEF
    834834{
    835835    return rtR3MemAlloc("TmpAlloc", RTMEMTYPE_RTMEMALLOCZ, cb, cb, pszTag, ASMReturnAddress(), RT_SRC_POS_ARGS);
     
    837837
    838838
    839 RTDECL(void)    RTMemEfTmpFree(void *pv, RT_SRC_POS_DECL) RT_NO_THROW
     839RTDECL(void)    RTMemEfTmpFree(void *pv, RT_SRC_POS_DECL) RT_NO_THROW_DEF
    840840{
    841841    if (pv)
     
    844844
    845845
    846 RTDECL(void *)  RTMemEfAlloc(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW
     846RTDECL(void *)  RTMemEfAlloc(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_DEF
    847847{
    848848    return rtR3MemAlloc("Alloc", RTMEMTYPE_RTMEMALLOC, cb, cb, pszTag, ASMReturnAddress(), RT_SRC_POS_ARGS);
     
    850850
    851851
    852 RTDECL(void *)  RTMemEfAllocZ(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW
     852RTDECL(void *)  RTMemEfAllocZ(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_DEF
    853853{
    854854    return rtR3MemAlloc("AllocZ", RTMEMTYPE_RTMEMALLOCZ, cb, cb, pszTag, ASMReturnAddress(), RT_SRC_POS_ARGS);
     
    856856
    857857
    858 RTDECL(void *)  RTMemEfAllocVar(size_t cbUnaligned, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW
     858RTDECL(void *)  RTMemEfAllocVar(size_t cbUnaligned, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_DEF
    859859{
    860860    size_t cbAligned;
     
    867867
    868868
    869 RTDECL(void *)  RTMemEfAllocZVar(size_t cbUnaligned, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW
     869RTDECL(void *)  RTMemEfAllocZVar(size_t cbUnaligned, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_DEF
    870870{
    871871    size_t cbAligned;
     
    878878
    879879
    880 RTDECL(void *)  RTMemEfRealloc(void *pvOld, size_t cbNew, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW
     880RTDECL(void *)  RTMemEfRealloc(void *pvOld, size_t cbNew, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_DEF
    881881{
    882882    return rtR3MemRealloc("Realloc", RTMEMTYPE_RTMEMREALLOC, pvOld, cbNew, pszTag, ASMReturnAddress(), RT_SRC_POS_ARGS);
     
    884884
    885885
    886 RTDECL(void)    RTMemEfFree(void *pv, RT_SRC_POS_DECL) RT_NO_THROW
     886RTDECL(void)    RTMemEfFree(void *pv, RT_SRC_POS_DECL) RT_NO_THROW_DEF
    887887{
    888888    if (pv)
     
    891891
    892892
    893 RTDECL(void *) RTMemEfDup(const void *pvSrc, size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW
     893RTDECL(void *) RTMemEfDup(const void *pvSrc, size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_DEF
    894894{
    895895    void *pvDst = RTMemEfAlloc(cb, pszTag, RT_SRC_POS_ARGS);
     
    900900
    901901
    902 RTDECL(void *) RTMemEfDupEx(const void *pvSrc, size_t cbSrc, size_t cbExtra, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW
     902RTDECL(void *) RTMemEfDupEx(const void *pvSrc, size_t cbSrc, size_t cbExtra, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_DEF
    903903{
    904904    void *pvDst = RTMemEfAlloc(cbSrc + cbExtra, pszTag, RT_SRC_POS_ARGS);
     
    922922
    923923
    924 RTDECL(void *)  RTMemEfTmpAllocNP(size_t cb, const char *pszTag) RT_NO_THROW
     924RTDECL(void *)  RTMemEfTmpAllocNP(size_t cb, const char *pszTag) RT_NO_THROW_DEF
    925925{
    926926    return rtR3MemAlloc("TmpAlloc", RTMEMTYPE_RTMEMALLOC, cb, cb, pszTag, ASMReturnAddress(), NULL, 0, NULL);
     
    928928
    929929
    930 RTDECL(void *)  RTMemEfTmpAllocZNP(size_t cb, const char *pszTag) RT_NO_THROW
     930RTDECL(void *)  RTMemEfTmpAllocZNP(size_t cb, const char *pszTag) RT_NO_THROW_DEF
    931931{
    932932    return rtR3MemAlloc("TmpAllocZ", RTMEMTYPE_RTMEMALLOCZ, cb, cb, pszTag, ASMReturnAddress(), NULL, 0, NULL);
     
    934934
    935935
    936 RTDECL(void)    RTMemEfTmpFreeNP(void *pv) RT_NO_THROW
     936RTDECL(void)    RTMemEfTmpFreeNP(void *pv) RT_NO_THROW_DEF
    937937{
    938938    if (pv)
     
    941941
    942942
    943 RTDECL(void *)  RTMemEfAllocNP(size_t cb, const char *pszTag) RT_NO_THROW
     943RTDECL(void *)  RTMemEfAllocNP(size_t cb, const char *pszTag) RT_NO_THROW_DEF
    944944{
    945945    return rtR3MemAlloc("Alloc", RTMEMTYPE_RTMEMALLOC, cb, cb, pszTag, ASMReturnAddress(), NULL, 0, NULL);
     
    947947
    948948
    949 RTDECL(void *)  RTMemEfAllocZNP(size_t cb, const char *pszTag) RT_NO_THROW
     949RTDECL(void *)  RTMemEfAllocZNP(size_t cb, const char *pszTag) RT_NO_THROW_DEF
    950950{
    951951    return rtR3MemAlloc("AllocZ", RTMEMTYPE_RTMEMALLOCZ, cb, cb, pszTag, ASMReturnAddress(), NULL, 0, NULL);
     
    953953
    954954
    955 RTDECL(void *)  RTMemEfAllocVarNP(size_t cbUnaligned, const char *pszTag) RT_NO_THROW
     955RTDECL(void *)  RTMemEfAllocVarNP(size_t cbUnaligned, const char *pszTag) RT_NO_THROW_DEF
    956956{
    957957    size_t cbAligned;
     
    964964
    965965
    966 RTDECL(void *)  RTMemEfAllocZVarNP(size_t cbUnaligned, const char *pszTag) RT_NO_THROW
     966RTDECL(void *)  RTMemEfAllocZVarNP(size_t cbUnaligned, const char *pszTag) RT_NO_THROW_DEF
    967967{
    968968    size_t cbAligned;
     
    975975
    976976
    977 RTDECL(void *)  RTMemEfReallocNP(void *pvOld, size_t cbNew, const char *pszTag) RT_NO_THROW
     977RTDECL(void *)  RTMemEfReallocNP(void *pvOld, size_t cbNew, const char *pszTag) RT_NO_THROW_DEF
    978978{
    979979    return rtR3MemRealloc("Realloc", RTMEMTYPE_RTMEMREALLOC, pvOld, cbNew, pszTag, ASMReturnAddress(), NULL, 0, NULL);
     
    981981
    982982
    983 RTDECL(void)    RTMemEfFreeNP(void *pv) RT_NO_THROW
     983RTDECL(void)    RTMemEfFreeNP(void *pv) RT_NO_THROW_DEF
    984984{
    985985    if (pv)
     
    988988
    989989
    990 RTDECL(void *) RTMemEfDupNP(const void *pvSrc, size_t cb, const char *pszTag) RT_NO_THROW
     990RTDECL(void *) RTMemEfDupNP(const void *pvSrc, size_t cb, const char *pszTag) RT_NO_THROW_DEF
    991991{
    992992    void *pvDst = RTMemEfAlloc(cb, pszTag, NULL, 0, NULL);
     
    997997
    998998
    999 RTDECL(void *) RTMemEfDupExNP(const void *pvSrc, size_t cbSrc, size_t cbExtra, const char *pszTag) RT_NO_THROW
     999RTDECL(void *) RTMemEfDupExNP(const void *pvSrc, size_t cbSrc, size_t cbExtra, const char *pszTag) RT_NO_THROW_DEF
    10001000{
    10011001    void *pvDst = RTMemEfAlloc(cbSrc + cbExtra, pszTag, NULL, 0, NULL);
  • trunk/src/VBox/Runtime/r3/alloc.cpp

    r57358 r57432  
    8686
    8787
    88 RTDECL(void *)  RTMemTmpAllocTag(size_t cb, const char *pszTag) RT_NO_THROW
     88RTDECL(void *)  RTMemTmpAllocTag(size_t cb, const char *pszTag) RT_NO_THROW_DEF
    8989{
    9090    return RTMemAllocTag(cb, pszTag);
     
    9292
    9393
    94 RTDECL(void *)  RTMemTmpAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW
     94RTDECL(void *)  RTMemTmpAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW_DEF
    9595{
    9696    return RTMemAllocZTag(cb, pszTag);
     
    9898
    9999
    100 RTDECL(void) RTMemTmpFree(void *pv) RT_NO_THROW
     100RTDECL(void) RTMemTmpFree(void *pv) RT_NO_THROW_DEF
    101101{
    102102    RTMemFree(pv);
     
    104104
    105105
    106 RTDECL(void *) RTMemAllocTag(size_t cb, const char *pszTag) RT_NO_THROW
     106RTDECL(void *) RTMemAllocTag(size_t cb, const char *pszTag) RT_NO_THROW_DEF
    107107{
    108108#ifdef RTALLOC_USE_EFENCE
     
    127127
    128128
    129 RTDECL(void *) RTMemAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW
     129RTDECL(void *) RTMemAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW_DEF
    130130{
    131131#ifdef RTALLOC_USE_EFENCE
     
    151151
    152152
    153 RTDECL(void *) RTMemAllocVarTag(size_t cbUnaligned, const char *pszTag) RT_NO_THROW
     153RTDECL(void *) RTMemAllocVarTag(size_t cbUnaligned, const char *pszTag) RT_NO_THROW_DEF
    154154{
    155155    size_t cbAligned;
     
    167167
    168168
    169 RTDECL(void *) RTMemAllocZVarTag(size_t cbUnaligned, const char *pszTag) RT_NO_THROW
     169RTDECL(void *) RTMemAllocZVarTag(size_t cbUnaligned, const char *pszTag) RT_NO_THROW_DEF
    170170{
    171171    size_t cbAligned;
     
    183183
    184184
    185 RTDECL(void *)  RTMemReallocTag(void *pvOld, size_t cbNew, const char *pszTag) RT_NO_THROW
     185RTDECL(void *)  RTMemReallocTag(void *pvOld, size_t cbNew, const char *pszTag) RT_NO_THROW_DEF
    186186{
    187187#ifdef RTALLOC_USE_EFENCE
     
    208208
    209209
    210 RTDECL(void) RTMemFree(void *pv) RT_NO_THROW
     210RTDECL(void) RTMemFree(void *pv) RT_NO_THROW_DEF
    211211{
    212212    if (pv)
  • trunk/src/VBox/Runtime/r3/allocex.cpp

    r57358 r57432  
    3939
    4040
    41 RTDECL(int) RTMemAllocExTag(size_t cb, size_t cbAlignment, uint32_t fFlags, const char *pszTag, void **ppv) RT_NO_THROW
     41RTDECL(int) RTMemAllocExTag(size_t cb, size_t cbAlignment, uint32_t fFlags, const char *pszTag, void **ppv) RT_NO_THROW_DEF
    4242{
    4343    /*
     
    105105
    106106
    107 RTDECL(void) RTMemFreeEx(void *pv, size_t cb) RT_NO_THROW
     107RTDECL(void) RTMemFreeEx(void *pv, size_t cb) RT_NO_THROW_DEF
    108108{
    109109    if (!pv)
  • trunk/src/VBox/Runtime/r3/memsafer-r3.cpp

    r57358 r57432  
    360360
    361361
    362 RTDECL(int) RTMemSaferAllocZExTag(void **ppvNew, size_t cb, uint32_t fFlags, const char *pszTag) RT_NO_THROW
     362RTDECL(int) RTMemSaferAllocZExTag(void **ppvNew, size_t cb, uint32_t fFlags, const char *pszTag) RT_NO_THROW_DEF
    363363{
    364364    /*
     
    427427
    428428
    429 RTDECL(void) RTMemSaferFree(void *pv, size_t cb) RT_NO_THROW
     429RTDECL(void) RTMemSaferFree(void *pv, size_t cb) RT_NO_THROW_DEF
    430430{
    431431    if (pv)
     
    496496
    497497
    498 RTDECL(int) RTMemSaferReallocZExTag(size_t cbOld, void *pvOld, size_t cbNew, void **ppvNew, uint32_t fFlags, const char *pszTag) RT_NO_THROW
     498RTDECL(int) RTMemSaferReallocZExTag(size_t cbOld, void *pvOld, size_t cbNew, void **ppvNew, uint32_t fFlags, const char *pszTag) RT_NO_THROW_DEF
    499499{
    500500    int rc;
     
    620620
    621621
    622 RTDECL(void *) RTMemSaferAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW
     622RTDECL(void *) RTMemSaferAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW_DEF
    623623{
    624624    void *pvNew = NULL;
     
    631631
    632632
    633 RTDECL(void *) RTMemSaferReallocZTag(size_t cbOld, void *pvOld, size_t cbNew, const char *pszTag) RT_NO_THROW
     633RTDECL(void *) RTMemSaferReallocZTag(size_t cbOld, void *pvOld, size_t cbNew, const char *pszTag) RT_NO_THROW_DEF
    634634{
    635635    void *pvNew = NULL;
  • trunk/src/VBox/Runtime/r3/posix/RTMemProtect-posix.cpp

    r57358 r57432  
    3939
    4040
    41 RTDECL(int) RTMemProtect(void *pv, size_t cb, unsigned fProtect) RT_NO_THROW
     41RTDECL(int) RTMemProtect(void *pv, size_t cb, unsigned fProtect) RT_NO_THROW_DEF
    4242{
    4343    /*
  • trunk/src/VBox/Runtime/r3/posix/rand-posix.cpp

    r57358 r57432  
    8888
    8989
    90 static int rtRandAdvPosixCreateSystem(PRTRAND phRand, const char *pszDev) RT_NO_THROW
     90static int rtRandAdvPosixCreateSystem(PRTRAND phRand, const char *pszDev) RT_NO_THROW_DEF
    9191{
    9292    /*
     
    126126
    127127
    128 RTDECL(int) RTRandAdvCreateSystemFaster(PRTRAND phRand) RT_NO_THROW
     128RTDECL(int) RTRandAdvCreateSystemFaster(PRTRAND phRand) RT_NO_THROW_DEF
    129129{
    130130    return rtRandAdvPosixCreateSystem(phRand, "/dev/urandom");
     
    132132
    133133
    134 RTDECL(int) RTRandAdvCreateSystemTruer(PRTRAND phRand) RT_NO_THROW
     134RTDECL(int) RTRandAdvCreateSystemTruer(PRTRAND phRand) RT_NO_THROW_DEF
    135135{
    136136    return rtRandAdvPosixCreateSystem(phRand, "/dev/random");
  • trunk/src/VBox/Runtime/r3/posix/rtmempage-exec-mmap-heap-posix.cpp

    r57358 r57432  
    724724
    725725
    726 RTDECL(void *) RTMemPageAllocTag(size_t cb, const char *pszTag) RT_NO_THROW
     726RTDECL(void *) RTMemPageAllocTag(size_t cb, const char *pszTag) RT_NO_THROW_DEF
    727727{
    728728    return rtMemPagePosixAlloc(cb, pszTag, false /*fZero*/, &g_MemPagePosixHeap);
     
    730730
    731731
    732 RTDECL(void *) RTMemPageAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW
     732RTDECL(void *) RTMemPageAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW_DEF
    733733{
    734734    return rtMemPagePosixAlloc(cb, pszTag, true /*fZero*/, &g_MemPagePosixHeap);
     
    736736
    737737
    738 RTDECL(void) RTMemPageFree(void *pv, size_t cb) RT_NO_THROW
     738RTDECL(void) RTMemPageFree(void *pv, size_t cb) RT_NO_THROW_DEF
    739739{
    740740    return rtMemPagePosixFree(pv, cb, &g_MemPagePosixHeap);
     
    745745
    746746
    747 RTDECL(void *) RTMemExecAllocTag(size_t cb, const char *pszTag) RT_NO_THROW
     747RTDECL(void *) RTMemExecAllocTag(size_t cb, const char *pszTag) RT_NO_THROW_DEF
    748748{
    749749    return rtMemPagePosixAlloc(cb, pszTag, false /*fZero*/, &g_MemExecPosixHeap);
     
    751751
    752752
    753 RTDECL(void) RTMemExecFree(void *pv, size_t cb) RT_NO_THROW
     753RTDECL(void) RTMemExecFree(void *pv, size_t cb) RT_NO_THROW_DEF
    754754{
    755755    return rtMemPagePosixFree(pv, cb, &g_MemExecPosixHeap);
  • trunk/src/VBox/Runtime/r3/posix/rtmempage-exec-mmap-posix.cpp

    r57358 r57432  
    112112
    113113
    114 RTDECL(void *) RTMemPageAllocTag(size_t cb, const char *pszTag) RT_NO_THROW
     114RTDECL(void *) RTMemPageAllocTag(size_t cb, const char *pszTag) RT_NO_THROW_DEF
    115115{
    116116    return rtMemPagePosixAlloc(cb, pszTag, false /*fZero*/, 0);
     
    118118
    119119
    120 RTDECL(void *) RTMemPageAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW
     120RTDECL(void *) RTMemPageAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW_DEF
    121121{
    122122    return rtMemPagePosixAlloc(cb, pszTag, true /*fZero*/, 0);
     
    124124
    125125
    126 RTDECL(void) RTMemPageFree(void *pv, size_t cb) RT_NO_THROW
     126RTDECL(void) RTMemPageFree(void *pv, size_t cb) RT_NO_THROW_DEF
    127127{
    128128    return rtMemPagePosixFree(pv, cb);
     
    133133
    134134
    135 RTDECL(void *) RTMemExecAllocTag(size_t cb, const char *pszTag) RT_NO_THROW
     135RTDECL(void *) RTMemExecAllocTag(size_t cb, const char *pszTag) RT_NO_THROW_DEF
    136136{
    137137    return rtMemPagePosixAlloc(cb, pszTag, false /*fZero*/, PROT_EXEC);
     
    139139
    140140
    141 RTDECL(void) RTMemExecFree(void *pv, size_t cb) RT_NO_THROW
     141RTDECL(void) RTMemExecFree(void *pv, size_t cb) RT_NO_THROW_DEF
    142142{
    143143    return rtMemPagePosixFree(pv, cb);
  • trunk/src/VBox/Runtime/r3/win/alloc-win.cpp

    r57358 r57432  
    4444
    4545
    46 RTDECL(void *) RTMemExecAllocTag(size_t cb, const char *pszTag) RT_NO_THROW
     46RTDECL(void *) RTMemExecAllocTag(size_t cb, const char *pszTag) RT_NO_THROW_DEF
    4747{
    4848    /*
     
    7171
    7272
    73 RTDECL(void)    RTMemExecFree(void *pv, size_t cb) RT_NO_THROW
     73RTDECL(void)    RTMemExecFree(void *pv, size_t cb) RT_NO_THROW_DEF
    7474{
    7575    if (pv)
     
    7878
    7979
    80 RTDECL(void *) RTMemPageAllocTag(size_t cb, const char *pszTag) RT_NO_THROW
     80RTDECL(void *) RTMemPageAllocTag(size_t cb, const char *pszTag) RT_NO_THROW_DEF
    8181{
    8282#ifdef USE_VIRTUAL_ALLOC
     
    9090
    9191
    92 RTDECL(void *) RTMemPageAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW
     92RTDECL(void *) RTMemPageAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW_DEF
    9393{
    9494#ifdef USE_VIRTUAL_ALLOC
     
    107107
    108108
    109 RTDECL(void) RTMemPageFree(void *pv, size_t cb) RT_NO_THROW
     109RTDECL(void) RTMemPageFree(void *pv, size_t cb) RT_NO_THROW_DEF
    110110{
    111111    if (pv)
     
    121121
    122122
    123 RTDECL(int) RTMemProtect(void *pv, size_t cb, unsigned fProtect) RT_NO_THROW
     123RTDECL(int) RTMemProtect(void *pv, size_t cb, unsigned fProtect) RT_NO_THROW_DEF
    124124{
    125125    /*
  • trunk/src/VBox/VMM/VMMAll/IEMAll.cpp

    r57358 r57432  
    146146typedef VBOXSTRICTRC (__fastcall * PFNIEMOP)(PIEMCPU pIemCpu);
    147147# define FNIEMOP_DEF(a_Name) \
    148     IEM_STATIC /*__declspec(naked)*/ VBOXSTRICTRC __fastcall a_Name(PIEMCPU pIemCpu) RT_NO_THROW
     148    IEM_STATIC /*__declspec(naked)*/ VBOXSTRICTRC __fastcall a_Name(PIEMCPU pIemCpu) RT_NO_THROW_DEF
    149149# define FNIEMOP_DEF_1(a_Name, a_Type0, a_Name0) \
    150     IEM_STATIC /*__declspec(naked)*/ VBOXSTRICTRC __fastcall a_Name(PIEMCPU pIemCpu, a_Type0 a_Name0) RT_NO_THROW
     150    IEM_STATIC /*__declspec(naked)*/ VBOXSTRICTRC __fastcall a_Name(PIEMCPU pIemCpu, a_Type0 a_Name0) RT_NO_THROW_DEF
    151151# define FNIEMOP_DEF_2(a_Name, a_Type0, a_Name0, a_Type1, a_Name1) \
    152     IEM_STATIC /*__declspec(naked)*/ VBOXSTRICTRC __fastcall a_Name(PIEMCPU pIemCpu, a_Type0 a_Name0, a_Type1 a_Name1) RT_NO_THROW
     152    IEM_STATIC /*__declspec(naked)*/ VBOXSTRICTRC __fastcall a_Name(PIEMCPU pIemCpu, a_Type0 a_Name0, a_Type1 a_Name1) RT_NO_THROW_DEF
    153153
    154154#elif defined(__GNUC__)
     
    164164typedef VBOXSTRICTRC (* PFNIEMOP)(PIEMCPU pIemCpu);
    165165# define FNIEMOP_DEF(a_Name) \
    166     IEM_STATIC VBOXSTRICTRC a_Name(PIEMCPU pIemCpu) RT_NO_THROW
     166    IEM_STATIC VBOXSTRICTRC a_Name(PIEMCPU pIemCpu) RT_NO_THROW_DEF
    167167# define FNIEMOP_DEF_1(a_Name, a_Type0, a_Name0) \
    168     IEM_STATIC VBOXSTRICTRC a_Name(PIEMCPU pIemCpu, a_Type0 a_Name0) RT_NO_THROW
     168    IEM_STATIC VBOXSTRICTRC a_Name(PIEMCPU pIemCpu, a_Type0 a_Name0) RT_NO_THROW_DEF
    169169# define FNIEMOP_DEF_2(a_Name, a_Type0, a_Name0, a_Type1, a_Name1) \
    170     IEM_STATIC VBOXSTRICTRC a_Name(PIEMCPU pIemCpu, a_Type0 a_Name0, a_Type1 a_Name1) RT_NO_THROW
     170    IEM_STATIC VBOXSTRICTRC a_Name(PIEMCPU pIemCpu, a_Type0 a_Name0, a_Type1 a_Name1) RT_NO_THROW_DEF
    171171
    172172#endif
  • trunk/src/VBox/VMM/testcase/tstIEMCheckMc.cpp

    r57358 r57432  
    7575typedef VBOXSTRICTRC (* PFNIEMOP)(PIEMCPU pIemCpu);
    7676#define FNIEMOP_DEF(a_Name) \
    77     static VBOXSTRICTRC a_Name(PIEMCPU pIemCpu) RT_NO_THROW
     77    static VBOXSTRICTRC a_Name(PIEMCPU pIemCpu) RT_NO_THROW_DEF
    7878#define FNIEMOP_DEF_1(a_Name, a_Type0, a_Name0) \
    79     static VBOXSTRICTRC a_Name(PIEMCPU pIemCpu, a_Type0 a_Name0) RT_NO_THROW
     79    static VBOXSTRICTRC a_Name(PIEMCPU pIemCpu, a_Type0 a_Name0) RT_NO_THROW_DEF
    8080#define FNIEMOP_DEF_2(a_Name, a_Type0, a_Name0, a_Type1, a_Name1) \
    81     static VBOXSTRICTRC a_Name(PIEMCPU pIemCpu, a_Type0 a_Name0, a_Type1 a_Name1) RT_NO_THROW
     81    static VBOXSTRICTRC a_Name(PIEMCPU pIemCpu, a_Type0 a_Name0, a_Type1 a_Name1) RT_NO_THROW_DEF
    8282
    8383#define IEM_NOT_REACHED_DEFAULT_CASE_RET()                  default: return VERR_IPE_NOT_REACHED_DEFAULT_CASE
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