- Timestamp:
- Aug 18, 2015 2:57:46 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 30 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/cdefs.h
r57430 r57432 877 877 #endif 878 878 879 /** @def RT_NO_THROW 879 /** @def RT_NO_THROW_PROTO 880 880 * How to express that a function doesn't throw C++ exceptions 881 881 * and the compiler can thus save itself the bother of trying … … 883 883 * and the semicolon in function prototypes (and implementation if C++). 884 884 * 885 * @remarks May not work on C++ methods, mainly intented for C-style APIs. 886 * 885 887 * @remarks The use of the nothrow attribute with GCC is because old compilers 886 888 * (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. 888 891 */ 889 892 #ifdef RT_EXCEPTIONS_ENABLED 890 893 # ifdef __GNUC__ 891 # define RT_NO_THROW __attribute__((nothrow))894 # define RT_NO_THROW_PROTO __attribute__((__nothrow__)) 892 895 # 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 897 910 #endif 898 911 -
trunk/include/iprt/mem.h
r56291 r57432 103 103 * @param pszTag Allocation tag used for statistics and such. 104 104 */ 105 RTDECL(void *) RTMemTmpAllocTag(size_t cb, const char *pszTag) RT_NO_THROW ;105 RTDECL(void *) RTMemTmpAllocTag(size_t cb, const char *pszTag) RT_NO_THROW_PROTO; 106 106 107 107 /** … … 126 126 * @param pszTag Allocation tag used for statistics and such. 127 127 */ 128 RTDECL(void *) RTMemTmpAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW ;128 RTDECL(void *) RTMemTmpAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW_PROTO; 129 129 130 130 /** … … 133 133 * @param pv Pointer to memory block. 134 134 */ 135 RTDECL(void) RTMemTmpFree(void *pv) RT_NO_THROW ;135 RTDECL(void) RTMemTmpFree(void *pv) RT_NO_THROW_PROTO; 136 136 137 137 /** @} */ … … 156 156 * @param pszTag Allocation tag used for statistics and such. 157 157 */ 158 RTDECL(void *) RTMemAllocTag(size_t cb, const char *pszTag) RT_NO_THROW ;158 RTDECL(void *) RTMemAllocTag(size_t cb, const char *pszTag) RT_NO_THROW_PROTO; 159 159 160 160 /** … … 183 183 * @param pszTag Allocation tag used for statistics and such. 184 184 */ 185 RTDECL(void *) RTMemAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW ;185 RTDECL(void *) RTMemAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW_PROTO; 186 186 187 187 /** … … 202 202 * @param pszTag Allocation tag used for statistics and such. 203 203 */ 204 RTDECL(void *) RTMemAllocVarTag(size_t cbUnaligned, const char *pszTag) RT_NO_THROW ;204 RTDECL(void *) RTMemAllocVarTag(size_t cbUnaligned, const char *pszTag) RT_NO_THROW_PROTO; 205 205 206 206 /** … … 221 221 * @param pszTag Allocation tag used for statistics and such. 222 222 */ 223 RTDECL(void *) RTMemAllocZVarTag(size_t cbUnaligned, const char *pszTag) RT_NO_THROW ;223 RTDECL(void *) RTMemAllocZVarTag(size_t cbUnaligned, const char *pszTag) RT_NO_THROW_PROTO; 224 224 225 225 /** … … 242 242 * @param pszTag Allocation tag used for statistics and such. 243 243 */ 244 RTDECL(void *) RTMemDupTag(const void *pvSrc, size_t cb, const char *pszTag) RT_NO_THROW ;244 RTDECL(void *) RTMemDupTag(const void *pvSrc, size_t cb, const char *pszTag) RT_NO_THROW_PROTO; 245 245 246 246 /** … … 267 267 * @param pszTag Allocation tag used for statistics and such. 268 268 */ 269 RTDECL(void *) RTMemDupExTag(const void *pvSrc, size_t cbSrc, size_t cbExtra, const char *pszTag) RT_NO_THROW ;269 RTDECL(void *) RTMemDupExTag(const void *pvSrc, size_t cbSrc, size_t cbExtra, const char *pszTag) RT_NO_THROW_PROTO; 270 270 271 271 /** … … 288 288 * @param pszTag Allocation tag used for statistics and such. 289 289 */ 290 RTDECL(void *) RTMemReallocTag(void *pvOld, size_t cbNew, const char *pszTag) RT_NO_THROW ;290 RTDECL(void *) RTMemReallocTag(void *pvOld, size_t cbNew, const char *pszTag) RT_NO_THROW_PROTO; 291 291 292 292 /** … … 295 295 * @param pv Pointer to memory block. 296 296 */ 297 RTDECL(void) RTMemFree(void *pv) RT_NO_THROW ;297 RTDECL(void) RTMemFree(void *pv) RT_NO_THROW_PROTO; 298 298 299 299 … … 362 362 * @param ppv Where to return the memory. 363 363 */ 364 RTDECL(int) RTMemAllocExTag(size_t cb, size_t cbAlignment, uint32_t fFlags, const char *pszTag, void **ppv) RT_NO_THROW ;364 RTDECL(int) RTMemAllocExTag(size_t cb, size_t cbAlignment, uint32_t fFlags, const char *pszTag, void **ppv) RT_NO_THROW_PROTO; 365 365 366 366 /** … … 375 375 * RTMEMALLOCEX_FLAGS_EXEC if used. 376 376 */ 377 RTDECL(void) RTMemFreeEx(void *pv, size_t cb) RT_NO_THROW ;377 RTDECL(void) RTMemFreeEx(void *pv, size_t cb) RT_NO_THROW_PROTO; 378 378 379 379 … … 396 396 * @param pszTag Allocation tag used for statistics and such. 397 397 */ 398 RTDECL(void *) RTMemExecAllocTag(size_t cb, const char *pszTag) RT_NO_THROW ;398 RTDECL(void *) RTMemExecAllocTag(size_t cb, const char *pszTag) RT_NO_THROW_PROTO; 399 399 400 400 /** … … 404 404 * @param cb The allocation size. 405 405 */ 406 RTDECL(void) RTMemExecFree(void *pv, size_t cb) RT_NO_THROW ;406 RTDECL(void) RTMemExecFree(void *pv, size_t cb) RT_NO_THROW_PROTO; 407 407 408 408 #if defined(IN_RING0) && defined(RT_ARCH_AMD64) && defined(RT_OS_LINUX) … … 422 422 * @param cb The size of the memory block. 423 423 */ 424 RTR0DECL(int) RTR0MemExecDonate(void *pvMemory, size_t cb) RT_NO_THROW ;424 RTR0DECL(int) RTR0MemExecDonate(void *pvMemory, size_t cb) RT_NO_THROW_PROTO; 425 425 #endif /* R0+AMD64+LINUX */ 426 426 … … 442 442 * @param pszTag Allocation tag used for statistics and such. 443 443 */ 444 RTDECL(void *) RTMemPageAllocTag(size_t cb, const char *pszTag) RT_NO_THROW ;444 RTDECL(void *) RTMemPageAllocTag(size_t cb, const char *pszTag) RT_NO_THROW_PROTO; 445 445 446 446 /** … … 461 461 * @param pszTag Allocation tag used for statistics and such. 462 462 */ 463 RTDECL(void *) RTMemPageAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW ;463 RTDECL(void *) RTMemPageAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW_PROTO; 464 464 465 465 /** … … 471 471 * Ignored if @a pv is NULL. 472 472 */ 473 RTDECL(void) RTMemPageFree(void *pv, size_t cb) RT_NO_THROW ;473 RTDECL(void) RTMemPageFree(void *pv, size_t cb) RT_NO_THROW_PROTO; 474 474 475 475 /** Page level protection flags for RTMemProtect(). … … 494 494 * @param fProtect The new protection, a combination of the RTMEM_PROT_* defines. 495 495 */ 496 RTDECL(int) RTMemProtect(void *pv, size_t cb, unsigned fProtect) RT_NO_THROW ;496 RTDECL(int) RTMemProtect(void *pv, size_t cb, unsigned fProtect) RT_NO_THROW_PROTO; 497 497 498 498 /** … … 504 504 * @param cMinPasses The minimum number of passes to make. 505 505 */ 506 RTDECL(void) RTMemWipeThoroughly(void *pv, size_t cb, size_t cMinPasses) RT_NO_THROW ;506 RTDECL(void) RTMemWipeThoroughly(void *pv, size_t cb, size_t cMinPasses) RT_NO_THROW_PROTO; 507 507 508 508 #ifdef IN_RING0 … … 517 517 * rounded up to PAGE_SIZE. 518 518 */ 519 RTR0DECL(void *) RTMemContAlloc(PRTCCPHYS pPhys, size_t cb) RT_NO_THROW ;519 RTR0DECL(void *) RTMemContAlloc(PRTCCPHYS pPhys, size_t cb) RT_NO_THROW_PROTO; 520 520 521 521 /** … … 525 525 * @param cb The cb parameter passed to RTMemContAlloc(). 526 526 */ 527 RTR0DECL(void) RTMemContFree(void *pv, size_t cb) RT_NO_THROW ;527 RTR0DECL(void) RTMemContFree(void *pv, size_t cb) RT_NO_THROW_PROTO; 528 528 529 529 /** … … 637 637 * @param pszTag Allocation tag used for statistics and such. 638 638 */ 639 RTDECL(void *) RTMemEfTmpAlloc(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW ;639 RTDECL(void *) RTMemEfTmpAlloc(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_PROTO; 640 640 641 641 /** … … 647 647 * @param pszTag Allocation tag used for statistics and such. 648 648 */ 649 RTDECL(void *) RTMemEfTmpAllocZ(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW ;649 RTDECL(void *) RTMemEfTmpAllocZ(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_PROTO; 650 650 651 651 /** … … 654 654 * @param pv Pointer to memory block. 655 655 */ 656 RTDECL(void) RTMemEfTmpFree(void *pv, RT_SRC_POS_DECL) RT_NO_THROW ;656 RTDECL(void) RTMemEfTmpFree(void *pv, RT_SRC_POS_DECL) RT_NO_THROW_PROTO; 657 657 658 658 /** … … 664 664 * @param pszTag Allocation tag used for statistics and such. 665 665 */ 666 RTDECL(void *) RTMemEfAlloc(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW ;666 RTDECL(void *) RTMemEfAlloc(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_PROTO; 667 667 668 668 /** … … 674 674 * @param pszTag Allocation tag used for statistics and such. 675 675 */ 676 RTDECL(void *) RTMemEfAllocZ(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW ;676 RTDECL(void *) RTMemEfAllocZ(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_PROTO; 677 677 678 678 /** … … 684 684 * @param pszTag Allocation tag used for statistics and such. 685 685 */ 686 RTDECL(void *) RTMemEfAllocVar(size_t cbUnaligned, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW ;686 RTDECL(void *) RTMemEfAllocVar(size_t cbUnaligned, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_PROTO; 687 687 688 688 /** … … 694 694 * @param pszTag Allocation tag used for statistics and such. 695 695 */ 696 RTDECL(void *) RTMemEfAllocZVar(size_t cbUnaligned, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW ;696 RTDECL(void *) RTMemEfAllocZVar(size_t cbUnaligned, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_PROTO; 697 697 698 698 /** … … 705 705 * @param pszTag Allocation tag used for statistics and such. 706 706 */ 707 RTDECL(void *) RTMemEfRealloc(void *pvOld, size_t cbNew, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW ;707 RTDECL(void *) RTMemEfRealloc(void *pvOld, size_t cbNew, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_PROTO; 708 708 709 709 /** … … 712 712 * @param pv Pointer to memory block. 713 713 */ 714 RTDECL(void) RTMemEfFree(void *pv, RT_SRC_POS_DECL) RT_NO_THROW ;714 RTDECL(void) RTMemEfFree(void *pv, RT_SRC_POS_DECL) RT_NO_THROW_PROTO; 715 715 716 716 /** … … 723 723 * @param pszTag Allocation tag used for statistics and such. 724 724 */ 725 RTDECL(void *) RTMemEfDup(const void *pvSrc, size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW ;725 RTDECL(void *) RTMemEfDup(const void *pvSrc, size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_PROTO; 726 726 727 727 /** … … 735 735 * @param pszTag Allocation tag used for statistics and such. 736 736 */ 737 RTDECL(void *) RTMemEfDupEx(const void *pvSrc, size_t cbSrc, size_t cbExtra, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW ;737 RTDECL(void *) RTMemEfDupEx(const void *pvSrc, size_t cbSrc, size_t cbExtra, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_PROTO; 738 738 739 739 /** @def RTMEM_WRAP_SOME_NEW_AND_DELETE_TO_EF … … 756 756 throw std::bad_alloc(); \ 757 757 } \ 758 void *operator new(size_t cb, const std::nothrow_t ¬hrow_constant) RT_NO_THROW \758 void *operator new(size_t cb, const std::nothrow_t ¬hrow_constant) RT_NO_THROW_DEF \ 759 759 { \ 760 760 NOREF(nothrow_constant); \ … … 768 768 throw std::bad_alloc(); \ 769 769 } \ 770 void *operator new[](size_t cb, const std::nothrow_t ¬hrow_constant) RT_NO_THROW \770 void *operator new[](size_t cb, const std::nothrow_t ¬hrow_constant) RT_NO_THROW_DEF \ 771 771 { \ 772 772 NOREF(nothrow_constant); \ … … 774 774 } \ 775 775 \ 776 void operator delete(void *pv) RT_NO_THROW \776 void operator delete(void *pv) RT_NO_THROW_DEF \ 777 777 { \ 778 778 RTMemEfFree(pv, RT_SRC_POS); \ 779 779 } \ 780 void operator delete(void *pv, const std::nothrow_t ¬hrow_constant) RT_NO_THROW \780 void operator delete(void *pv, const std::nothrow_t ¬hrow_constant) RT_NO_THROW_DEF \ 781 781 { \ 782 782 NOREF(nothrow_constant); \ 783 783 RTMemEfFree(pv, RT_SRC_POS); \ 784 784 } \ 785 void operator delete[](void *pv) RT_NO_THROW \785 void operator delete[](void *pv) RT_NO_THROW_DEF \ 786 786 { \ 787 787 RTMemEfFree(pv, RT_SRC_POS); \ 788 788 } \ 789 void operator delete[](void *pv, const std::nothrow_t ¬hrow_constant) RT_NO_THROW \789 void operator delete[](void *pv, const std::nothrow_t ¬hrow_constant) RT_NO_THROW_DEF \ 790 790 { \ 791 791 NOREF(nothrow_constant); \ … … 868 868 * @copydoc RTMemTmpAllocTag 869 869 */ 870 RTDECL(void *) RTMemEfTmpAllocNP(size_t cb, const char *pszTag) RT_NO_THROW ;870 RTDECL(void *) RTMemEfTmpAllocNP(size_t cb, const char *pszTag) RT_NO_THROW_PROTO; 871 871 872 872 /** … … 874 874 * @copydoc RTMemTmpAllocZTag 875 875 */ 876 RTDECL(void *) RTMemEfTmpAllocZNP(size_t cb, const char *pszTag) RT_NO_THROW ;876 RTDECL(void *) RTMemEfTmpAllocZNP(size_t cb, const char *pszTag) RT_NO_THROW_PROTO; 877 877 878 878 /** … … 880 880 * @copydoc RTMemTmpFreeTag 881 881 */ 882 RTDECL(void) RTMemEfTmpFreeNP(void *pv) RT_NO_THROW ;882 RTDECL(void) RTMemEfTmpFreeNP(void *pv) RT_NO_THROW_PROTO; 883 883 884 884 /** … … 886 886 * @copydoc RTMemAllocTag 887 887 */ 888 RTDECL(void *) RTMemEfAllocNP(size_t cb, const char *pszTag) RT_NO_THROW ;888 RTDECL(void *) RTMemEfAllocNP(size_t cb, const char *pszTag) RT_NO_THROW_PROTO; 889 889 890 890 /** … … 892 892 * @copydoc RTMemAllocZTag 893 893 */ 894 RTDECL(void *) RTMemEfAllocZNP(size_t cb, const char *pszTag) RT_NO_THROW ;894 RTDECL(void *) RTMemEfAllocZNP(size_t cb, const char *pszTag) RT_NO_THROW_PROTO; 895 895 896 896 /** … … 898 898 * @copydoc RTMemAllocVarTag 899 899 */ 900 RTDECL(void *) RTMemEfAllocVarNP(size_t cbUnaligned, const char *pszTag) RT_NO_THROW ;900 RTDECL(void *) RTMemEfAllocVarNP(size_t cbUnaligned, const char *pszTag) RT_NO_THROW_PROTO; 901 901 902 902 /** … … 904 904 * @copydoc RTMemAllocZVarTag 905 905 */ 906 RTDECL(void *) RTMemEfAllocZVarNP(size_t cbUnaligned, const char *pszTag) RT_NO_THROW ;906 RTDECL(void *) RTMemEfAllocZVarNP(size_t cbUnaligned, const char *pszTag) RT_NO_THROW_PROTO; 907 907 908 908 /** … … 910 910 * @copydoc RTMemReallocTag 911 911 */ 912 RTDECL(void *) RTMemEfReallocNP(void *pvOld, size_t cbNew, const char *pszTag) RT_NO_THROW ;912 RTDECL(void *) RTMemEfReallocNP(void *pvOld, size_t cbNew, const char *pszTag) RT_NO_THROW_PROTO; 913 913 914 914 /** … … 916 916 * @copydoc RTMemFree 917 917 */ 918 RTDECL(void) RTMemEfFreeNP(void *pv) RT_NO_THROW ;918 RTDECL(void) RTMemEfFreeNP(void *pv) RT_NO_THROW_PROTO; 919 919 920 920 /** … … 922 922 * @copydoc RTMemDupExTag 923 923 */ 924 RTDECL(void *) RTMemEfDupNP(const void *pvSrc, size_t cb, const char *pszTag) RT_NO_THROW ;924 RTDECL(void *) RTMemEfDupNP(const void *pvSrc, size_t cb, const char *pszTag) RT_NO_THROW_PROTO; 925 925 926 926 /** … … 928 928 * @copydoc RTMemDupExTag 929 929 */ 930 RTDECL(void *) RTMemEfDupExNP(const void *pvSrc, size_t cbSrc, size_t cbExtra, const char *pszTag) RT_NO_THROW ;930 RTDECL(void *) RTMemEfDupExNP(const void *pvSrc, size_t cbSrc, size_t cbExtra, const char *pszTag) RT_NO_THROW_PROTO; 931 931 932 932 /** @} */ -
trunk/include/iprt/mempool.h
r56291 r57432 62 62 * @param cb Size in bytes of the memory block to allocated. 63 63 */ 64 RTDECL(void *) RTMemPoolAlloc(RTMEMPOOL hMemPool, size_t cb) RT_NO_THROW ;64 RTDECL(void *) RTMemPoolAlloc(RTMEMPOOL hMemPool, size_t cb) RT_NO_THROW_PROTO; 65 65 66 66 /** … … 77 77 * @param cb Size in bytes of the memory block to allocated. 78 78 */ 79 RTDECL(void *) RTMemPoolAllocZ(RTMEMPOOL hMemPool, size_t cb) RT_NO_THROW ;79 RTDECL(void *) RTMemPoolAllocZ(RTMEMPOOL hMemPool, size_t cb) RT_NO_THROW_PROTO; 80 80 81 81 /** … … 89 89 * @param cb The amount of memory to duplicate. 90 90 */ 91 RTDECL(void *) RTMemPoolDup(RTMEMPOOL hMemPool, const void *pvSrc, size_t cb) RT_NO_THROW ;91 RTDECL(void *) RTMemPoolDup(RTMEMPOOL hMemPool, const void *pvSrc, size_t cb) RT_NO_THROW_PROTO; 92 92 93 93 /** … … 103 103 * @param cbExtra The amount of extra memory to allocate and zero. 104 104 */ 105 RTDECL(void *) RTMemPoolDupEx(RTMEMPOOL hMemPool, const void *pvSrc, size_t cbSrc, size_t cbExtra) RT_NO_THROW ;105 RTDECL(void *) RTMemPoolDupEx(RTMEMPOOL hMemPool, const void *pvSrc, size_t cbSrc, size_t cbExtra) RT_NO_THROW_PROTO; 106 106 107 107 /** … … 115 115 * @param cbNew The new block size (in bytes). 116 116 */ 117 RTDECL(void *) RTMemPoolRealloc(RTMEMPOOL hMemPool, void *pvOld, size_t cbNew) RT_NO_THROW ;117 RTDECL(void *) RTMemPoolRealloc(RTMEMPOOL hMemPool, void *pvOld, size_t cbNew) RT_NO_THROW_PROTO; 118 118 119 119 /** … … 128 128 * function to simplify code migration. 129 129 */ 130 RTDECL(void) RTMemPoolFree(RTMEMPOOL hMemPool, void *pv) RT_NO_THROW ;130 RTDECL(void) RTMemPoolFree(RTMEMPOOL hMemPool, void *pv) RT_NO_THROW_PROTO; 131 131 132 132 /** … … 137 137 * @param pv Pointer to memory block. 138 138 */ 139 RTDECL(uint32_t) RTMemPoolRetain(void *pv) RT_NO_THROW ;139 RTDECL(uint32_t) RTMemPoolRetain(void *pv) RT_NO_THROW_PROTO; 140 140 141 141 /** … … 149 149 * @param pv Pointer to memory block. 150 150 */ 151 RTDECL(uint32_t) RTMemPoolRelease(RTMEMPOOL hMemPool, void *pv) RT_NO_THROW ;151 RTDECL(uint32_t) RTMemPoolRelease(RTMEMPOOL hMemPool, void *pv) RT_NO_THROW_PROTO; 152 152 153 153 /** … … 157 157 * @param pv Pointer to memory block. 158 158 */ 159 RTDECL(uint32_t) RTMemPoolRefCount(void *pv) RT_NO_THROW ;159 RTDECL(uint32_t) RTMemPoolRefCount(void *pv) RT_NO_THROW_PROTO; 160 160 161 161 -
trunk/include/iprt/memsafer.h
r56291 r57432 108 108 * @param pszTag Allocation tag used for statistics and such. 109 109 */ 110 RTDECL(int) RTMemSaferAllocZExTag(void **ppvNew, size_t cb, uint32_t fFlags, const char *pszTag) RT_NO_THROW ;110 RTDECL(int) RTMemSaferAllocZExTag(void **ppvNew, size_t cb, uint32_t fFlags, const char *pszTag) RT_NO_THROW_PROTO; 111 111 112 112 /** … … 134 134 * @param pszTag Allocation tag used for statistics and such. 135 135 */ 136 RTDECL(void *) RTMemSaferAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW ;136 RTDECL(void *) RTMemSaferAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW_PROTO; 137 137 138 138 /** … … 168 168 * @param pszTag Allocation tag used for statistics and such. 169 169 */ 170 RTDECL(int) RTMemSaferReallocZExTag(size_t cbOld, void *pvOld, size_t cbNew, void **ppvNew, uint32_t fFlags, const char *pszTag) RT_NO_THROW ;170 RTDECL(int) RTMemSaferReallocZExTag(size_t cbOld, void *pvOld, size_t cbNew, void **ppvNew, uint32_t fFlags, const char *pszTag) RT_NO_THROW_PROTO; 171 171 172 172 /** … … 207 207 * @param pszTag Allocation tag used for statistics and such. 208 208 */ 209 RTDECL(void *) RTMemSaferReallocZTag(size_t cbOld, void *pvOld, size_t cbNew, const char *pszTag) RT_NO_THROW ;209 RTDECL(void *) RTMemSaferReallocZTag(size_t cbOld, void *pvOld, size_t cbNew, const char *pszTag) RT_NO_THROW_PROTO; 210 210 211 211 /** … … 236 236 * @param cb The allocation size. 237 237 */ 238 RTDECL(void) RTMemSaferFree(void *pv, size_t cb) RT_NO_THROW ;238 RTDECL(void) RTMemSaferFree(void *pv, size_t cb) RT_NO_THROW_PROTO; 239 239 240 240 /** @} */ -
trunk/include/iprt/rand.h
r56291 r57432 43 43 * @param cb Number of bytes to generate. 44 44 */ 45 RTDECL(void) RTRandBytes(void *pv, size_t cb) RT_NO_THROW ;45 RTDECL(void) RTRandBytes(void *pv, size_t cb) RT_NO_THROW_PROTO; 46 46 47 47 /** … … 52 52 * @param i32Last Last number in the set. 53 53 */ 54 RTDECL(int32_t) RTRandS32Ex(int32_t i32First, int32_t i32Last) RT_NO_THROW ;54 RTDECL(int32_t) RTRandS32Ex(int32_t i32First, int32_t i32Last) RT_NO_THROW_PROTO; 55 55 56 56 /** … … 59 59 * @returns The random number. 60 60 */ 61 RTDECL(int32_t) RTRandS32(void) RT_NO_THROW ;61 RTDECL(int32_t) RTRandS32(void) RT_NO_THROW_PROTO; 62 62 63 63 /** … … 68 68 * @param u32Last Last number in the set. 69 69 */ 70 RTDECL(uint32_t) RTRandU32Ex(uint32_t u32First, uint32_t u32Last) RT_NO_THROW ;70 RTDECL(uint32_t) RTRandU32Ex(uint32_t u32First, uint32_t u32Last) RT_NO_THROW_PROTO; 71 71 72 72 /** … … 75 75 * @returns The random number. 76 76 */ 77 RTDECL(uint32_t) RTRandU32(void) RT_NO_THROW ;77 RTDECL(uint32_t) RTRandU32(void) RT_NO_THROW_PROTO; 78 78 79 79 /** … … 84 84 * @param i64Last Last number in the set. 85 85 */ 86 RTDECL(int64_t) RTRandS64Ex(int64_t i64First, int64_t i64Last) RT_NO_THROW ;86 RTDECL(int64_t) RTRandS64Ex(int64_t i64First, int64_t i64Last) RT_NO_THROW_PROTO; 87 87 88 88 /** … … 91 91 * @returns The random number. 92 92 */ 93 RTDECL(int64_t) RTRandS64(void) RT_NO_THROW ;93 RTDECL(int64_t) RTRandS64(void) RT_NO_THROW_PROTO; 94 94 95 95 /** … … 100 100 * @param u64Last Last number in the set. 101 101 */ 102 RTDECL(uint64_t) RTRandU64Ex(uint64_t u64First, uint64_t u64Last) RT_NO_THROW ;102 RTDECL(uint64_t) RTRandU64Ex(uint64_t u64First, uint64_t u64Last) RT_NO_THROW_PROTO; 103 103 104 104 /** … … 107 107 * @returns The random number. 108 108 */ 109 RTDECL(uint64_t) RTRandU64(void) RT_NO_THROW ;109 RTDECL(uint64_t) RTRandU64(void) RT_NO_THROW_PROTO; 110 110 111 111 … … 117 117 * generator. 118 118 */ 119 RTDECL(int) RTRandAdvCreate(PRTRAND phRand) RT_NO_THROW ;119 RTDECL(int) RTRandAdvCreate(PRTRAND phRand) RT_NO_THROW_PROTO; 120 120 121 121 /** … … 125 125 * @param phRand Where to store the handle to the generator. 126 126 */ 127 RTDECL(int) RTRandAdvCreatePseudo(PRTRAND phRand) RT_NO_THROW ;127 RTDECL(int) RTRandAdvCreatePseudo(PRTRAND phRand) RT_NO_THROW_PROTO; 128 128 129 129 /** … … 133 133 * @param phRand Where to store the handle to the generator. 134 134 */ 135 RTDECL(int) RTRandAdvCreateParkMiller(PRTRAND phRand) RT_NO_THROW ;135 RTDECL(int) RTRandAdvCreateParkMiller(PRTRAND phRand) RT_NO_THROW_PROTO; 136 136 137 137 /** … … 148 148 * @remarks Think /dev/urandom. 149 149 */ 150 RTDECL(int) RTRandAdvCreateSystemFaster(PRTRAND phRand) RT_NO_THROW ;150 RTDECL(int) RTRandAdvCreateSystemFaster(PRTRAND phRand) RT_NO_THROW_PROTO; 151 151 152 152 /** … … 167 167 * @remarks Think /dev/random. 168 168 */ 169 RTDECL(int) RTRandAdvCreateSystemTruer(PRTRAND phRand) RT_NO_THROW ;169 RTDECL(int) RTRandAdvCreateSystemTruer(PRTRAND phRand) RT_NO_THROW_PROTO; 170 170 171 171 /** … … 175 175 * @param hRand Handle to the random number generator. 176 176 */ 177 RTDECL(int) RTRandAdvDestroy(RTRAND hRand) RT_NO_THROW ;177 RTDECL(int) RTRandAdvDestroy(RTRAND hRand) RT_NO_THROW_PROTO; 178 178 179 179 /** … … 190 190 * @param u64Seed Seed. 191 191 */ 192 RTDECL(int) RTRandAdvSeed(RTRAND hRand, uint64_t u64Seed) RT_NO_THROW ;192 RTDECL(int) RTRandAdvSeed(RTRAND hRand, uint64_t u64Seed) RT_NO_THROW_PROTO; 193 193 194 194 /** … … 212 212 * terminator, thus the 'cb' instead of 'cch'). 213 213 */ 214 RTDECL(int) RTRandAdvSaveState(RTRAND hRand, char *pszState, size_t *pcbState) RT_NO_THROW ;214 RTDECL(int) RTRandAdvSaveState(RTRAND hRand, char *pszState, size_t *pcbState) RT_NO_THROW_PROTO; 215 215 216 216 /** … … 226 226 * @param pszState The state to load. 227 227 */ 228 RTDECL(int) RTRandAdvRestoreState(RTRAND hRand, char const *pszState) RT_NO_THROW ;228 RTDECL(int) RTRandAdvRestoreState(RTRAND hRand, char const *pszState) RT_NO_THROW_PROTO; 229 229 230 230 /** … … 235 235 * @param cb Number of bytes to generate. 236 236 */ 237 RTDECL(void) RTRandAdvBytes(RTRAND hRand, void *pv, size_t cb) RT_NO_THROW ;237 RTDECL(void) RTRandAdvBytes(RTRAND hRand, void *pv, size_t cb) RT_NO_THROW_PROTO; 238 238 239 239 /** … … 245 245 * @param i32Last Last number in the set. 246 246 */ 247 RTDECL(int32_t) RTRandAdvS32Ex(RTRAND hRand, int32_t i32First, int32_t i32Last) RT_NO_THROW ;247 RTDECL(int32_t) RTRandAdvS32Ex(RTRAND hRand, int32_t i32First, int32_t i32Last) RT_NO_THROW_PROTO; 248 248 249 249 /** … … 253 253 * @param hRand Handle to the random number generator. 254 254 */ 255 RTDECL(int32_t) RTRandAdvS32(RTRAND hRand) RT_NO_THROW ;255 RTDECL(int32_t) RTRandAdvS32(RTRAND hRand) RT_NO_THROW_PROTO; 256 256 257 257 /** … … 263 263 * @param u32Last Last number in the set. 264 264 */ 265 RTDECL(uint32_t) RTRandAdvU32Ex(RTRAND hRand, uint32_t u32First, uint32_t u32Last) RT_NO_THROW ;265 RTDECL(uint32_t) RTRandAdvU32Ex(RTRAND hRand, uint32_t u32First, uint32_t u32Last) RT_NO_THROW_PROTO; 266 266 267 267 /** … … 271 271 * @param hRand Handle to the random number generator. 272 272 */ 273 RTDECL(uint32_t) RTRandAdvU32(RTRAND hRand) RT_NO_THROW ;273 RTDECL(uint32_t) RTRandAdvU32(RTRAND hRand) RT_NO_THROW_PROTO; 274 274 275 275 /** … … 281 281 * @param i64Last Last number in the set. 282 282 */ 283 RTDECL(int64_t) RTRandAdvS64Ex(RTRAND hRand, int64_t i64First, int64_t i64Last) RT_NO_THROW ;283 RTDECL(int64_t) RTRandAdvS64Ex(RTRAND hRand, int64_t i64First, int64_t i64Last) RT_NO_THROW_PROTO; 284 284 285 285 /** … … 288 288 * @returns The random number. 289 289 */ 290 RTDECL(int64_t) RTRandAdvS64(RTRAND hRand) RT_NO_THROW ;290 RTDECL(int64_t) RTRandAdvS64(RTRAND hRand) RT_NO_THROW_PROTO; 291 291 292 292 /** … … 298 298 * @param u64Last Last number in the set. 299 299 */ 300 RTDECL(uint64_t) RTRandAdvU64Ex(RTRAND hRand, uint64_t u64First, uint64_t u64Last) RT_NO_THROW ;300 RTDECL(uint64_t) RTRandAdvU64Ex(RTRAND hRand, uint64_t u64First, uint64_t u64Last) RT_NO_THROW_PROTO; 301 301 302 302 /** … … 306 306 * @param hRand Handle to the random number generator. 307 307 */ 308 RTDECL(uint64_t) RTRandAdvU64(RTRAND hRand) RT_NO_THROW ;308 RTDECL(uint64_t) RTRandAdvU64(RTRAND hRand) RT_NO_THROW_PROTO; 309 309 310 310 -
trunk/include/iprt/zip.h
r56291 r57432 196 196 RTDECL(int) RTZipBlockCompress(RTZIPTYPE enmType, RTZIPLEVEL enmLevel, uint32_t fFlags, 197 197 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; 199 199 200 200 … … 215 215 RTDECL(int) RTZipBlockDecompress(RTZIPTYPE enmType, uint32_t fFlags, 216 216 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; 218 218 219 219 -
trunk/src/VBox/Runtime/common/alloc/alloc.cpp
r57358 r57432 40 40 41 41 42 RTDECL(void *) RTMemDupTag(const void *pvSrc, size_t cb, const char *pszTag) RT_NO_THROW 42 RTDECL(void *) RTMemDupTag(const void *pvSrc, size_t cb, const char *pszTag) RT_NO_THROW_DEF 43 43 { 44 44 void *pvDst = RTMemAllocTag(cb, pszTag); … … 50 50 51 51 52 RTDECL(void *) RTMemDupExTag(const void *pvSrc, size_t cbSrc, size_t cbExtra, const char *pszTag) RT_NO_THROW 52 RTDECL(void *) RTMemDupExTag(const void *pvSrc, size_t cbSrc, size_t cbExtra, const char *pszTag) RT_NO_THROW_DEF 53 53 { 54 54 void *pvDst = RTMemAllocTag(cbSrc + cbExtra, pszTag); -
trunk/src/VBox/Runtime/common/misc/RTMemWipeThoroughly.cpp
r57358 r57432 37 37 38 38 39 RTDECL(void) RTMemWipeThoroughly(void *pv, size_t cb, size_t cMinPasses) RT_NO_THROW 39 RTDECL(void) RTMemWipeThoroughly(void *pv, size_t cb, size_t cMinPasses) RT_NO_THROW_DEF 40 40 { 41 41 size_t cPasses = RT_MIN(cMinPasses, 6); -
trunk/src/VBox/Runtime/common/rand/rand.cpp
r57358 r57432 104 104 105 105 106 RTDECL(void) RTRandBytes(void *pv, size_t cb) RT_NO_THROW 106 RTDECL(void) RTRandBytes(void *pv, size_t cb) RT_NO_THROW_DEF 107 107 { 108 108 RTOnceEx(&g_rtRandOnce, rtRandInitOnce, rtRandTermOnce, NULL); … … 112 112 113 113 114 RTDECL(uint32_t) RTRandU32Ex(uint32_t u32First, uint32_t u32Last) RT_NO_THROW 114 RTDECL(uint32_t) RTRandU32Ex(uint32_t u32First, uint32_t u32Last) RT_NO_THROW_DEF 115 115 { 116 116 RTOnceEx(&g_rtRandOnce, rtRandInitOnce, rtRandTermOnce, NULL); … … 120 120 121 121 122 RTDECL(uint32_t) RTRandU32(void) RT_NO_THROW 122 RTDECL(uint32_t) RTRandU32(void) RT_NO_THROW_DEF 123 123 { 124 124 RTOnceEx(&g_rtRandOnce, rtRandInitOnce, rtRandTermOnce, NULL); … … 128 128 129 129 130 RTDECL(int32_t) RTRandS32Ex(int32_t i32First, int32_t i32Last) RT_NO_THROW 130 RTDECL(int32_t) RTRandS32Ex(int32_t i32First, int32_t i32Last) RT_NO_THROW_DEF 131 131 { 132 132 RTOnceEx(&g_rtRandOnce, rtRandInitOnce, rtRandTermOnce, NULL); … … 136 136 137 137 138 RTDECL(int32_t) RTRandS32(void) RT_NO_THROW 138 RTDECL(int32_t) RTRandS32(void) RT_NO_THROW_DEF 139 139 { 140 140 RTOnceEx(&g_rtRandOnce, rtRandInitOnce, rtRandTermOnce, NULL); … … 144 144 145 145 146 RTDECL(uint64_t) RTRandU64Ex(uint64_t u64First, uint64_t u64Last) RT_NO_THROW 146 RTDECL(uint64_t) RTRandU64Ex(uint64_t u64First, uint64_t u64Last) RT_NO_THROW_DEF 147 147 { 148 148 RTOnceEx(&g_rtRandOnce, rtRandInitOnce, rtRandTermOnce, NULL); … … 152 152 153 153 154 RTDECL(uint64_t) RTRandU64(void) RT_NO_THROW 154 RTDECL(uint64_t) RTRandU64(void) RT_NO_THROW_DEF 155 155 { 156 156 RTOnceEx(&g_rtRandOnce, rtRandInitOnce, rtRandTermOnce, NULL); … … 160 160 161 161 162 RTDECL(int64_t) RTRandS64Ex(int64_t i64First, int64_t i64Last) RT_NO_THROW 162 RTDECL(int64_t) RTRandS64Ex(int64_t i64First, int64_t i64Last) RT_NO_THROW_DEF 163 163 { 164 164 RTOnceEx(&g_rtRandOnce, rtRandInitOnce, rtRandTermOnce, NULL); … … 168 168 169 169 170 RTDECL(int64_t) RTRandS64(void) RT_NO_THROW 170 RTDECL(int64_t) RTRandS64(void) RT_NO_THROW_DEF 171 171 { 172 172 RTOnceEx(&g_rtRandOnce, rtRandInitOnce, rtRandTermOnce, NULL); -
trunk/src/VBox/Runtime/common/rand/randadv.cpp
r57358 r57432 39 39 40 40 41 RTDECL(int) RTRandAdvDestroy(RTRAND hRand) RT_NO_THROW 41 RTDECL(int) RTRandAdvDestroy(RTRAND hRand) RT_NO_THROW_DEF 42 42 { 43 43 /* Validate. */ … … 54 54 55 55 56 RTDECL(int) RTRandAdvSeed(RTRAND hRand, uint64_t u64Seed) RT_NO_THROW 56 RTDECL(int) RTRandAdvSeed(RTRAND hRand, uint64_t u64Seed) RT_NO_THROW_DEF 57 57 { 58 58 /* Validate. */ … … 67 67 68 68 69 RTDECL(int) RTRandAdvSaveState(RTRAND hRand, char *pszState, size_t *pcbState) RT_NO_THROW 69 RTDECL(int) RTRandAdvSaveState(RTRAND hRand, char *pszState, size_t *pcbState) RT_NO_THROW_DEF 70 70 { 71 71 /* Validate. */ … … 82 82 83 83 84 RTDECL(int) RTRandAdvRestoreState(RTRAND hRand, char const *pszState) RT_NO_THROW 84 RTDECL(int) RTRandAdvRestoreState(RTRAND hRand, char const *pszState) RT_NO_THROW_DEF 85 85 { 86 86 /* Validate. */ … … 96 96 97 97 98 RTDECL(void) RTRandAdvBytes(RTRAND hRand, void *pv, size_t cb) RT_NO_THROW 98 RTDECL(void) RTRandAdvBytes(RTRAND hRand, void *pv, size_t cb) RT_NO_THROW_DEF 99 99 { 100 100 /* Validate. */ … … 110 110 111 111 112 RTDECL(int32_t) RTRandAdvS32Ex(RTRAND hRand, int32_t i32First, int32_t i32Last) RT_NO_THROW 112 RTDECL(int32_t) RTRandAdvS32Ex(RTRAND hRand, int32_t i32First, int32_t i32Last) RT_NO_THROW_DEF 113 113 { 114 114 /* Validate. */ … … 123 123 124 124 125 RTDECL(int32_t) RTRandAdvS32(RTRAND hRand) RT_NO_THROW 125 RTDECL(int32_t) RTRandAdvS32(RTRAND hRand) RT_NO_THROW_DEF 126 126 { 127 127 /* Validate. */ … … 136 136 137 137 138 RTDECL(uint32_t) RTRandAdvU32Ex(RTRAND hRand, uint32_t u32First, uint32_t u32Last) RT_NO_THROW 138 RTDECL(uint32_t) RTRandAdvU32Ex(RTRAND hRand, uint32_t u32First, uint32_t u32Last) RT_NO_THROW_DEF 139 139 { 140 140 /* Validate. */ … … 149 149 150 150 151 RTDECL(uint32_t) RTRandAdvU32(RTRAND hRand) RT_NO_THROW 151 RTDECL(uint32_t) RTRandAdvU32(RTRAND hRand) RT_NO_THROW_DEF 152 152 { 153 153 /* Validate. */ … … 162 162 163 163 164 RTDECL(int64_t) RTRandAdvS64Ex(RTRAND hRand, int64_t i64First, int64_t i64Last) RT_NO_THROW 164 RTDECL(int64_t) RTRandAdvS64Ex(RTRAND hRand, int64_t i64First, int64_t i64Last) RT_NO_THROW_DEF 165 165 { 166 166 /* Validate. */ … … 175 175 176 176 177 RTDECL(int64_t) RTRandAdvS64(RTRAND hRand) RT_NO_THROW 177 RTDECL(int64_t) RTRandAdvS64(RTRAND hRand) RT_NO_THROW_DEF 178 178 { 179 179 /* Validate. */ … … 188 188 189 189 190 RTDECL(uint64_t) RTRandAdvU64Ex(RTRAND hRand, uint64_t u64First, uint64_t u64Last) RT_NO_THROW 190 RTDECL(uint64_t) RTRandAdvU64Ex(RTRAND hRand, uint64_t u64First, uint64_t u64Last) RT_NO_THROW_DEF 191 191 { 192 192 /* Validate. */ … … 201 201 202 202 203 RTDECL(uint64_t) RTRandAdvU64(RTRAND hRand) RT_NO_THROW 203 RTDECL(uint64_t) RTRandAdvU64(RTRAND hRand) RT_NO_THROW_DEF 204 204 { 205 205 /* Validate. */ -
trunk/src/VBox/Runtime/common/rand/randparkmiller.cpp
r57358 r57432 188 188 189 189 190 RTDECL(int) RTRandAdvCreateParkMiller(PRTRAND phRand) RT_NO_THROW 190 RTDECL(int) RTRandAdvCreateParkMiller(PRTRAND phRand) RT_NO_THROW_DEF 191 191 { 192 192 PRTRANDINT pThis = (PRTRANDINT)RTMemAlloc(sizeof(*pThis)); -
trunk/src/VBox/Runtime/common/zip/zip.cpp
r57358 r57432 1718 1718 RTDECL(int) RTZipBlockCompress(RTZIPTYPE enmType, RTZIPLEVEL enmLevel, uint32_t fFlags, 1719 1719 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 1721 1721 { 1722 1722 /* input validation - the crash and burn approach as speed is essential here. */ … … 1834 1834 RTDECL(int) RTZipBlockDecompress(RTZIPTYPE enmType, uint32_t fFlags, 1835 1835 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 1837 1837 { 1838 1838 /* input validation - the crash and burn approach as speed is essential here. */ -
trunk/src/VBox/Runtime/generic/RTRandAdvCreateSystemFaster-generic.cpp
r57358 r57432 35 35 36 36 37 RTDECL(int) RTRandAdvCreateSystemFaster(PRTRAND phRand) RT_NO_THROW 37 RTDECL(int) RTRandAdvCreateSystemFaster(PRTRAND phRand) RT_NO_THROW_DEF 38 38 { 39 39 NOREF(phRand); -
trunk/src/VBox/Runtime/generic/RTRandAdvCreateSystemTruer-generic.cpp
r57358 r57432 35 35 36 36 37 RTDECL(int) RTRandAdvCreateSystemTruer(PRTRAND phRand) RT_NO_THROW 37 RTDECL(int) RTRandAdvCreateSystemTruer(PRTRAND phRand) RT_NO_THROW_DEF 38 38 { 39 39 NOREF(phRand); -
trunk/src/VBox/Runtime/generic/mempool-generic.cpp
r57358 r57432 244 244 245 245 246 RTDECL(void *) RTMemPoolAlloc(RTMEMPOOL hMemPool, size_t cb) RT_NO_THROW 246 RTDECL(void *) RTMemPoolAlloc(RTMEMPOOL hMemPool, size_t cb) RT_NO_THROW_DEF 247 247 { 248 248 PRTMEMPOOLINT pMemPool = hMemPool; … … 259 259 260 260 261 RTDECL(void *) RTMemPoolAllocZ(RTMEMPOOL hMemPool, size_t cb) RT_NO_THROW 261 RTDECL(void *) RTMemPoolAllocZ(RTMEMPOOL hMemPool, size_t cb) RT_NO_THROW_DEF 262 262 { 263 263 PRTMEMPOOLINT pMemPool = hMemPool; … … 274 274 275 275 276 RTDECL(void *) RTMemPoolDup(RTMEMPOOL hMemPool, const void *pvSrc, size_t cb) RT_NO_THROW 276 RTDECL(void *) RTMemPoolDup(RTMEMPOOL hMemPool, const void *pvSrc, size_t cb) RT_NO_THROW_DEF 277 277 { 278 278 PRTMEMPOOLINT pMemPool = hMemPool; … … 290 290 291 291 292 RTDECL(void *) RTMemPoolDupEx(RTMEMPOOL hMemPool, const void *pvSrc, size_t cbSrc, size_t cbExtra) RT_NO_THROW 292 RTDECL(void *) RTMemPoolDupEx(RTMEMPOOL hMemPool, const void *pvSrc, size_t cbSrc, size_t cbExtra) RT_NO_THROW_DEF 293 293 { 294 294 PRTMEMPOOLINT pMemPool = hMemPool; … … 308 308 309 309 310 RTDECL(void *) RTMemPoolRealloc(RTMEMPOOL hMemPool, void *pvOld, size_t cbNew) RT_NO_THROW 310 RTDECL(void *) RTMemPoolRealloc(RTMEMPOOL hMemPool, void *pvOld, size_t cbNew) RT_NO_THROW_DEF 311 311 { 312 312 /* … … 351 351 352 352 353 RTDECL(void) RTMemPoolFree(RTMEMPOOL hMemPool, void *pv) RT_NO_THROW 353 RTDECL(void) RTMemPoolFree(RTMEMPOOL hMemPool, void *pv) RT_NO_THROW_DEF 354 354 { 355 355 RTMemPoolRelease(hMemPool, pv); … … 358 358 359 359 360 RTDECL(uint32_t) RTMemPoolRetain(void *pv) RT_NO_THROW 360 RTDECL(uint32_t) RTMemPoolRetain(void *pv) RT_NO_THROW_DEF 361 361 { 362 362 PRTMEMPOOLENTRY pEntry = (PRTMEMPOOLENTRY)pv - 1; … … 371 371 372 372 373 RTDECL(uint32_t) RTMemPoolRelease(RTMEMPOOL hMemPool, void *pv) RT_NO_THROW 373 RTDECL(uint32_t) RTMemPoolRelease(RTMEMPOOL hMemPool, void *pv) RT_NO_THROW_DEF 374 374 { 375 375 if (!pv) … … 397 397 398 398 399 RTDECL(uint32_t) RTMemPoolRefCount(void *pv) RT_NO_THROW 399 RTDECL(uint32_t) RTMemPoolRefCount(void *pv) RT_NO_THROW_DEF 400 400 { 401 401 PRTMEMPOOLENTRY pEntry = (PRTMEMPOOLENTRY)pv - 1; -
trunk/src/VBox/Runtime/generic/memsafer-generic.cpp
r57358 r57432 103 103 104 104 105 RTDECL(int) RTMemSaferAllocZExTag(void **ppvNew, size_t cb, uint32_t fFlags, const char *pszTag) RT_NO_THROW 105 RTDECL(int) RTMemSaferAllocZExTag(void **ppvNew, size_t cb, uint32_t fFlags, const char *pszTag) RT_NO_THROW_DEF 106 106 { 107 107 AssertPtrReturn(ppvNew, VERR_INVALID_PARAMETER); … … 144 144 145 145 146 RTDECL(void) RTMemSaferFree(void *pv, size_t cb) RT_NO_THROW 146 RTDECL(void) RTMemSaferFree(void *pv, size_t cb) RT_NO_THROW_DEF 147 147 { 148 148 if (pv) … … 160 160 161 161 162 RTDECL(int) RTMemSaferReallocZExTag(size_t cbOld, void *pvOld, size_t cbNew, void **ppvNew, uint32_t fFlags, const char *pszTag) RT_NO_THROW 162 RTDECL(int) RTMemSaferReallocZExTag(size_t cbOld, void *pvOld, size_t cbNew, void **ppvNew, uint32_t fFlags, const char *pszTag) RT_NO_THROW_DEF 163 163 { 164 164 /* … … 204 204 205 205 206 RTDECL(void *) RTMemSaferAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW 206 RTDECL(void *) RTMemSaferAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW_DEF 207 207 { 208 208 void *pvNew = NULL; … … 215 215 216 216 217 RTDECL(void *) RTMemSaferReallocZTag(size_t cbOld, void *pvOld, size_t cbNew, const char *pszTag) RT_NO_THROW 217 RTDECL(void *) RTMemSaferReallocZTag(size_t cbOld, void *pvOld, size_t cbNew, const char *pszTag) RT_NO_THROW_DEF 218 218 { 219 219 void *pvNew = NULL; -
trunk/src/VBox/Runtime/r0drv/alloc-r0drv.cpp
r57358 r57432 90 90 91 91 92 RTDECL(void *) RTMemTmpAllocTag(size_t cb, const char *pszTag) RT_NO_THROW 92 RTDECL(void *) RTMemTmpAllocTag(size_t cb, const char *pszTag) RT_NO_THROW_DEF 93 93 { 94 94 return RTMemAllocTag(cb, pszTag); … … 97 97 98 98 99 RTDECL(void *) RTMemTmpAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW 99 RTDECL(void *) RTMemTmpAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW_DEF 100 100 { 101 101 return RTMemAllocZTag(cb, pszTag); … … 104 104 105 105 106 RTDECL(void) RTMemTmpFree(void *pv) RT_NO_THROW 106 RTDECL(void) RTMemTmpFree(void *pv) RT_NO_THROW_DEF 107 107 { 108 108 return RTMemFree(pv); … … 114 114 115 115 116 RTDECL(void *) RTMemAllocTag(size_t cb, const char *pszTag) RT_NO_THROW 116 RTDECL(void *) RTMemAllocTag(size_t cb, const char *pszTag) RT_NO_THROW_DEF 117 117 { 118 118 PRTMEMHDR pHdr; … … 133 133 134 134 135 RTDECL(void *) RTMemAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW 135 RTDECL(void *) RTMemAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW_DEF 136 136 { 137 137 PRTMEMHDR pHdr; … … 178 178 179 179 180 RTDECL(void *) RTMemReallocTag(void *pvOld, size_t cbNew, const char *pszTag) RT_NO_THROW 180 RTDECL(void *) RTMemReallocTag(void *pvOld, size_t cbNew, const char *pszTag) RT_NO_THROW_DEF 181 181 { 182 182 PRTMEMHDR pHdrOld; … … 244 244 245 245 246 RTDECL(void) RTMemFree(void *pv) RT_NO_THROW 246 RTDECL(void) RTMemFree(void *pv) RT_NO_THROW_DEF 247 247 { 248 248 PRTMEMHDR pHdr; … … 277 277 278 278 279 RTDECL(void *) RTMemExecAllocTag(size_t cb, const char *pszTag) RT_NO_THROW 279 RTDECL(void *) RTMemExecAllocTag(size_t cb, const char *pszTag) RT_NO_THROW_DEF 280 280 { 281 281 PRTMEMHDR pHdr; … … 300 300 301 301 302 RTDECL(void) RTMemExecFree(void *pv, size_t cb) RT_NO_THROW 302 RTDECL(void) RTMemExecFree(void *pv, size_t cb) RT_NO_THROW_DEF 303 303 { 304 304 PRTMEMHDR pHdr; … … 330 330 331 331 332 RTDECL(int) RTMemAllocExTag(size_t cb, size_t cbAlignment, uint32_t fFlags, const char *pszTag, void **ppv) RT_NO_THROW 332 RTDECL(int) RTMemAllocExTag(size_t cb, size_t cbAlignment, uint32_t fFlags, const char *pszTag, void **ppv) RT_NO_THROW_DEF 333 333 { 334 334 uint32_t fHdrFlags = RTMEMHDR_FLAG_ALLOC_EX; … … 394 394 395 395 396 RTDECL(void) RTMemFreeEx(void *pv, size_t cb) RT_NO_THROW 396 RTDECL(void) RTMemFreeEx(void *pv, size_t cb) RT_NO_THROW_DEF 397 397 { 398 398 PRTMEMHDR pHdr; -
trunk/src/VBox/Runtime/r0drv/haiku/alloc-r0drv-haiku.c
r57358 r57432 74 74 75 75 76 RTR0DECL(void *) RTMemContAlloc(PRTCCPHYS pPhys, size_t cb) RT_NO_THROW 76 RTR0DECL(void *) RTMemContAlloc(PRTCCPHYS pPhys, size_t cb) RT_NO_THROW_DEF 77 77 { 78 78 /* … … 108 108 109 109 110 RTR0DECL(void) RTMemContFree(void *pv, size_t cb) RT_NO_THROW 110 RTR0DECL(void) RTMemContFree(void *pv, size_t cb) RT_NO_THROW_DEF 111 111 { 112 112 RT_ASSERT_PREEMPTIBLE(); -
trunk/src/VBox/Runtime/r3/alloc-ef-cpp.cpp
r57358 r57432 79 79 80 80 81 void *RT_EF_CDECL operator new(RT_EF_SIZE_T cb, const std::nothrow_t &) RT_NO_THROW 81 void *RT_EF_CDECL operator new(RT_EF_SIZE_T cb, const std::nothrow_t &) RT_NO_THROW_DEF 82 82 { 83 83 void *pv = rtR3MemAlloc("new nothrow", RTMEMTYPE_NEW, cb, cb, NULL, ASMReturnAddress(), NULL, 0, NULL); … … 86 86 87 87 88 void RT_EF_CDECL operator delete(void *pv) RT_NO_THROW 88 void RT_EF_CDECL operator delete(void *pv) RT_NO_THROW_DEF 89 89 { 90 90 rtR3MemFree("delete", RTMEMTYPE_DELETE, pv, ASMReturnAddress(), NULL, 0, NULL); … … 92 92 93 93 94 void RT_EF_CDECL operator delete(void * pv, const std::nothrow_t &) RT_NO_THROW 94 void RT_EF_CDECL operator delete(void * pv, const std::nothrow_t &) RT_NO_THROW_DEF 95 95 { 96 96 rtR3MemFree("delete nothrow", RTMEMTYPE_DELETE, pv, ASMReturnAddress(), NULL, 0, NULL); … … 115 115 116 116 117 void * RT_EF_CDECL operator new[](RT_EF_SIZE_T cb, const std::nothrow_t &) RT_NO_THROW 117 void * RT_EF_CDECL operator new[](RT_EF_SIZE_T cb, const std::nothrow_t &) RT_NO_THROW_DEF 118 118 { 119 119 void *pv = rtR3MemAlloc("new[] nothrow", RTMEMTYPE_NEW_ARRAY, cb, cb, NULL, ASMReturnAddress(), NULL, 0, NULL); … … 122 122 123 123 124 void RT_EF_CDECL operator delete[](void * pv) RT_NO_THROW 124 void RT_EF_CDECL operator delete[](void * pv) RT_NO_THROW_DEF 125 125 { 126 126 rtR3MemFree("delete[]", RTMEMTYPE_DELETE_ARRAY, pv, ASMReturnAddress(), NULL, 0, NULL); … … 128 128 129 129 130 void RT_EF_CDECL operator delete[](void *pv, const std::nothrow_t &) RT_NO_THROW 130 void RT_EF_CDECL operator delete[](void *pv, const std::nothrow_t &) RT_NO_THROW_DEF 131 131 { 132 132 rtR3MemFree("delete[] nothrow", RTMEMTYPE_DELETE_ARRAY, pv, ASMReturnAddress(), NULL, 0, NULL); -
trunk/src/VBox/Runtime/r3/alloc-ef.cpp
r57358 r57432 825 825 826 826 827 RTDECL(void *) RTMemEfTmpAlloc(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW 827 RTDECL(void *) RTMemEfTmpAlloc(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_DEF 828 828 { 829 829 return rtR3MemAlloc("TmpAlloc", RTMEMTYPE_RTMEMALLOC, cb, cb, pszTag, ASMReturnAddress(), RT_SRC_POS_ARGS); … … 831 831 832 832 833 RTDECL(void *) RTMemEfTmpAllocZ(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW 833 RTDECL(void *) RTMemEfTmpAllocZ(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_DEF 834 834 { 835 835 return rtR3MemAlloc("TmpAlloc", RTMEMTYPE_RTMEMALLOCZ, cb, cb, pszTag, ASMReturnAddress(), RT_SRC_POS_ARGS); … … 837 837 838 838 839 RTDECL(void) RTMemEfTmpFree(void *pv, RT_SRC_POS_DECL) RT_NO_THROW 839 RTDECL(void) RTMemEfTmpFree(void *pv, RT_SRC_POS_DECL) RT_NO_THROW_DEF 840 840 { 841 841 if (pv) … … 844 844 845 845 846 RTDECL(void *) RTMemEfAlloc(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW 846 RTDECL(void *) RTMemEfAlloc(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_DEF 847 847 { 848 848 return rtR3MemAlloc("Alloc", RTMEMTYPE_RTMEMALLOC, cb, cb, pszTag, ASMReturnAddress(), RT_SRC_POS_ARGS); … … 850 850 851 851 852 RTDECL(void *) RTMemEfAllocZ(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW 852 RTDECL(void *) RTMemEfAllocZ(size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_DEF 853 853 { 854 854 return rtR3MemAlloc("AllocZ", RTMEMTYPE_RTMEMALLOCZ, cb, cb, pszTag, ASMReturnAddress(), RT_SRC_POS_ARGS); … … 856 856 857 857 858 RTDECL(void *) RTMemEfAllocVar(size_t cbUnaligned, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW 858 RTDECL(void *) RTMemEfAllocVar(size_t cbUnaligned, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_DEF 859 859 { 860 860 size_t cbAligned; … … 867 867 868 868 869 RTDECL(void *) RTMemEfAllocZVar(size_t cbUnaligned, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW 869 RTDECL(void *) RTMemEfAllocZVar(size_t cbUnaligned, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_DEF 870 870 { 871 871 size_t cbAligned; … … 878 878 879 879 880 RTDECL(void *) RTMemEfRealloc(void *pvOld, size_t cbNew, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW 880 RTDECL(void *) RTMemEfRealloc(void *pvOld, size_t cbNew, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_DEF 881 881 { 882 882 return rtR3MemRealloc("Realloc", RTMEMTYPE_RTMEMREALLOC, pvOld, cbNew, pszTag, ASMReturnAddress(), RT_SRC_POS_ARGS); … … 884 884 885 885 886 RTDECL(void) RTMemEfFree(void *pv, RT_SRC_POS_DECL) RT_NO_THROW 886 RTDECL(void) RTMemEfFree(void *pv, RT_SRC_POS_DECL) RT_NO_THROW_DEF 887 887 { 888 888 if (pv) … … 891 891 892 892 893 RTDECL(void *) RTMemEfDup(const void *pvSrc, size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW 893 RTDECL(void *) RTMemEfDup(const void *pvSrc, size_t cb, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_DEF 894 894 { 895 895 void *pvDst = RTMemEfAlloc(cb, pszTag, RT_SRC_POS_ARGS); … … 900 900 901 901 902 RTDECL(void *) RTMemEfDupEx(const void *pvSrc, size_t cbSrc, size_t cbExtra, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW 902 RTDECL(void *) RTMemEfDupEx(const void *pvSrc, size_t cbSrc, size_t cbExtra, const char *pszTag, RT_SRC_POS_DECL) RT_NO_THROW_DEF 903 903 { 904 904 void *pvDst = RTMemEfAlloc(cbSrc + cbExtra, pszTag, RT_SRC_POS_ARGS); … … 922 922 923 923 924 RTDECL(void *) RTMemEfTmpAllocNP(size_t cb, const char *pszTag) RT_NO_THROW 924 RTDECL(void *) RTMemEfTmpAllocNP(size_t cb, const char *pszTag) RT_NO_THROW_DEF 925 925 { 926 926 return rtR3MemAlloc("TmpAlloc", RTMEMTYPE_RTMEMALLOC, cb, cb, pszTag, ASMReturnAddress(), NULL, 0, NULL); … … 928 928 929 929 930 RTDECL(void *) RTMemEfTmpAllocZNP(size_t cb, const char *pszTag) RT_NO_THROW 930 RTDECL(void *) RTMemEfTmpAllocZNP(size_t cb, const char *pszTag) RT_NO_THROW_DEF 931 931 { 932 932 return rtR3MemAlloc("TmpAllocZ", RTMEMTYPE_RTMEMALLOCZ, cb, cb, pszTag, ASMReturnAddress(), NULL, 0, NULL); … … 934 934 935 935 936 RTDECL(void) RTMemEfTmpFreeNP(void *pv) RT_NO_THROW 936 RTDECL(void) RTMemEfTmpFreeNP(void *pv) RT_NO_THROW_DEF 937 937 { 938 938 if (pv) … … 941 941 942 942 943 RTDECL(void *) RTMemEfAllocNP(size_t cb, const char *pszTag) RT_NO_THROW 943 RTDECL(void *) RTMemEfAllocNP(size_t cb, const char *pszTag) RT_NO_THROW_DEF 944 944 { 945 945 return rtR3MemAlloc("Alloc", RTMEMTYPE_RTMEMALLOC, cb, cb, pszTag, ASMReturnAddress(), NULL, 0, NULL); … … 947 947 948 948 949 RTDECL(void *) RTMemEfAllocZNP(size_t cb, const char *pszTag) RT_NO_THROW 949 RTDECL(void *) RTMemEfAllocZNP(size_t cb, const char *pszTag) RT_NO_THROW_DEF 950 950 { 951 951 return rtR3MemAlloc("AllocZ", RTMEMTYPE_RTMEMALLOCZ, cb, cb, pszTag, ASMReturnAddress(), NULL, 0, NULL); … … 953 953 954 954 955 RTDECL(void *) RTMemEfAllocVarNP(size_t cbUnaligned, const char *pszTag) RT_NO_THROW 955 RTDECL(void *) RTMemEfAllocVarNP(size_t cbUnaligned, const char *pszTag) RT_NO_THROW_DEF 956 956 { 957 957 size_t cbAligned; … … 964 964 965 965 966 RTDECL(void *) RTMemEfAllocZVarNP(size_t cbUnaligned, const char *pszTag) RT_NO_THROW 966 RTDECL(void *) RTMemEfAllocZVarNP(size_t cbUnaligned, const char *pszTag) RT_NO_THROW_DEF 967 967 { 968 968 size_t cbAligned; … … 975 975 976 976 977 RTDECL(void *) RTMemEfReallocNP(void *pvOld, size_t cbNew, const char *pszTag) RT_NO_THROW 977 RTDECL(void *) RTMemEfReallocNP(void *pvOld, size_t cbNew, const char *pszTag) RT_NO_THROW_DEF 978 978 { 979 979 return rtR3MemRealloc("Realloc", RTMEMTYPE_RTMEMREALLOC, pvOld, cbNew, pszTag, ASMReturnAddress(), NULL, 0, NULL); … … 981 981 982 982 983 RTDECL(void) RTMemEfFreeNP(void *pv) RT_NO_THROW 983 RTDECL(void) RTMemEfFreeNP(void *pv) RT_NO_THROW_DEF 984 984 { 985 985 if (pv) … … 988 988 989 989 990 RTDECL(void *) RTMemEfDupNP(const void *pvSrc, size_t cb, const char *pszTag) RT_NO_THROW 990 RTDECL(void *) RTMemEfDupNP(const void *pvSrc, size_t cb, const char *pszTag) RT_NO_THROW_DEF 991 991 { 992 992 void *pvDst = RTMemEfAlloc(cb, pszTag, NULL, 0, NULL); … … 997 997 998 998 999 RTDECL(void *) RTMemEfDupExNP(const void *pvSrc, size_t cbSrc, size_t cbExtra, const char *pszTag) RT_NO_THROW 999 RTDECL(void *) RTMemEfDupExNP(const void *pvSrc, size_t cbSrc, size_t cbExtra, const char *pszTag) RT_NO_THROW_DEF 1000 1000 { 1001 1001 void *pvDst = RTMemEfAlloc(cbSrc + cbExtra, pszTag, NULL, 0, NULL); -
trunk/src/VBox/Runtime/r3/alloc.cpp
r57358 r57432 86 86 87 87 88 RTDECL(void *) RTMemTmpAllocTag(size_t cb, const char *pszTag) RT_NO_THROW 88 RTDECL(void *) RTMemTmpAllocTag(size_t cb, const char *pszTag) RT_NO_THROW_DEF 89 89 { 90 90 return RTMemAllocTag(cb, pszTag); … … 92 92 93 93 94 RTDECL(void *) RTMemTmpAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW 94 RTDECL(void *) RTMemTmpAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW_DEF 95 95 { 96 96 return RTMemAllocZTag(cb, pszTag); … … 98 98 99 99 100 RTDECL(void) RTMemTmpFree(void *pv) RT_NO_THROW 100 RTDECL(void) RTMemTmpFree(void *pv) RT_NO_THROW_DEF 101 101 { 102 102 RTMemFree(pv); … … 104 104 105 105 106 RTDECL(void *) RTMemAllocTag(size_t cb, const char *pszTag) RT_NO_THROW 106 RTDECL(void *) RTMemAllocTag(size_t cb, const char *pszTag) RT_NO_THROW_DEF 107 107 { 108 108 #ifdef RTALLOC_USE_EFENCE … … 127 127 128 128 129 RTDECL(void *) RTMemAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW 129 RTDECL(void *) RTMemAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW_DEF 130 130 { 131 131 #ifdef RTALLOC_USE_EFENCE … … 151 151 152 152 153 RTDECL(void *) RTMemAllocVarTag(size_t cbUnaligned, const char *pszTag) RT_NO_THROW 153 RTDECL(void *) RTMemAllocVarTag(size_t cbUnaligned, const char *pszTag) RT_NO_THROW_DEF 154 154 { 155 155 size_t cbAligned; … … 167 167 168 168 169 RTDECL(void *) RTMemAllocZVarTag(size_t cbUnaligned, const char *pszTag) RT_NO_THROW 169 RTDECL(void *) RTMemAllocZVarTag(size_t cbUnaligned, const char *pszTag) RT_NO_THROW_DEF 170 170 { 171 171 size_t cbAligned; … … 183 183 184 184 185 RTDECL(void *) RTMemReallocTag(void *pvOld, size_t cbNew, const char *pszTag) RT_NO_THROW 185 RTDECL(void *) RTMemReallocTag(void *pvOld, size_t cbNew, const char *pszTag) RT_NO_THROW_DEF 186 186 { 187 187 #ifdef RTALLOC_USE_EFENCE … … 208 208 209 209 210 RTDECL(void) RTMemFree(void *pv) RT_NO_THROW 210 RTDECL(void) RTMemFree(void *pv) RT_NO_THROW_DEF 211 211 { 212 212 if (pv) -
trunk/src/VBox/Runtime/r3/allocex.cpp
r57358 r57432 39 39 40 40 41 RTDECL(int) RTMemAllocExTag(size_t cb, size_t cbAlignment, uint32_t fFlags, const char *pszTag, void **ppv) RT_NO_THROW 41 RTDECL(int) RTMemAllocExTag(size_t cb, size_t cbAlignment, uint32_t fFlags, const char *pszTag, void **ppv) RT_NO_THROW_DEF 42 42 { 43 43 /* … … 105 105 106 106 107 RTDECL(void) RTMemFreeEx(void *pv, size_t cb) RT_NO_THROW 107 RTDECL(void) RTMemFreeEx(void *pv, size_t cb) RT_NO_THROW_DEF 108 108 { 109 109 if (!pv) -
trunk/src/VBox/Runtime/r3/memsafer-r3.cpp
r57358 r57432 360 360 361 361 362 RTDECL(int) RTMemSaferAllocZExTag(void **ppvNew, size_t cb, uint32_t fFlags, const char *pszTag) RT_NO_THROW 362 RTDECL(int) RTMemSaferAllocZExTag(void **ppvNew, size_t cb, uint32_t fFlags, const char *pszTag) RT_NO_THROW_DEF 363 363 { 364 364 /* … … 427 427 428 428 429 RTDECL(void) RTMemSaferFree(void *pv, size_t cb) RT_NO_THROW 429 RTDECL(void) RTMemSaferFree(void *pv, size_t cb) RT_NO_THROW_DEF 430 430 { 431 431 if (pv) … … 496 496 497 497 498 RTDECL(int) RTMemSaferReallocZExTag(size_t cbOld, void *pvOld, size_t cbNew, void **ppvNew, uint32_t fFlags, const char *pszTag) RT_NO_THROW 498 RTDECL(int) RTMemSaferReallocZExTag(size_t cbOld, void *pvOld, size_t cbNew, void **ppvNew, uint32_t fFlags, const char *pszTag) RT_NO_THROW_DEF 499 499 { 500 500 int rc; … … 620 620 621 621 622 RTDECL(void *) RTMemSaferAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW 622 RTDECL(void *) RTMemSaferAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW_DEF 623 623 { 624 624 void *pvNew = NULL; … … 631 631 632 632 633 RTDECL(void *) RTMemSaferReallocZTag(size_t cbOld, void *pvOld, size_t cbNew, const char *pszTag) RT_NO_THROW 633 RTDECL(void *) RTMemSaferReallocZTag(size_t cbOld, void *pvOld, size_t cbNew, const char *pszTag) RT_NO_THROW_DEF 634 634 { 635 635 void *pvNew = NULL; -
trunk/src/VBox/Runtime/r3/posix/RTMemProtect-posix.cpp
r57358 r57432 39 39 40 40 41 RTDECL(int) RTMemProtect(void *pv, size_t cb, unsigned fProtect) RT_NO_THROW 41 RTDECL(int) RTMemProtect(void *pv, size_t cb, unsigned fProtect) RT_NO_THROW_DEF 42 42 { 43 43 /* -
trunk/src/VBox/Runtime/r3/posix/rand-posix.cpp
r57358 r57432 88 88 89 89 90 static int rtRandAdvPosixCreateSystem(PRTRAND phRand, const char *pszDev) RT_NO_THROW 90 static int rtRandAdvPosixCreateSystem(PRTRAND phRand, const char *pszDev) RT_NO_THROW_DEF 91 91 { 92 92 /* … … 126 126 127 127 128 RTDECL(int) RTRandAdvCreateSystemFaster(PRTRAND phRand) RT_NO_THROW 128 RTDECL(int) RTRandAdvCreateSystemFaster(PRTRAND phRand) RT_NO_THROW_DEF 129 129 { 130 130 return rtRandAdvPosixCreateSystem(phRand, "/dev/urandom"); … … 132 132 133 133 134 RTDECL(int) RTRandAdvCreateSystemTruer(PRTRAND phRand) RT_NO_THROW 134 RTDECL(int) RTRandAdvCreateSystemTruer(PRTRAND phRand) RT_NO_THROW_DEF 135 135 { 136 136 return rtRandAdvPosixCreateSystem(phRand, "/dev/random"); -
trunk/src/VBox/Runtime/r3/posix/rtmempage-exec-mmap-heap-posix.cpp
r57358 r57432 724 724 725 725 726 RTDECL(void *) RTMemPageAllocTag(size_t cb, const char *pszTag) RT_NO_THROW 726 RTDECL(void *) RTMemPageAllocTag(size_t cb, const char *pszTag) RT_NO_THROW_DEF 727 727 { 728 728 return rtMemPagePosixAlloc(cb, pszTag, false /*fZero*/, &g_MemPagePosixHeap); … … 730 730 731 731 732 RTDECL(void *) RTMemPageAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW 732 RTDECL(void *) RTMemPageAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW_DEF 733 733 { 734 734 return rtMemPagePosixAlloc(cb, pszTag, true /*fZero*/, &g_MemPagePosixHeap); … … 736 736 737 737 738 RTDECL(void) RTMemPageFree(void *pv, size_t cb) RT_NO_THROW 738 RTDECL(void) RTMemPageFree(void *pv, size_t cb) RT_NO_THROW_DEF 739 739 { 740 740 return rtMemPagePosixFree(pv, cb, &g_MemPagePosixHeap); … … 745 745 746 746 747 RTDECL(void *) RTMemExecAllocTag(size_t cb, const char *pszTag) RT_NO_THROW 747 RTDECL(void *) RTMemExecAllocTag(size_t cb, const char *pszTag) RT_NO_THROW_DEF 748 748 { 749 749 return rtMemPagePosixAlloc(cb, pszTag, false /*fZero*/, &g_MemExecPosixHeap); … … 751 751 752 752 753 RTDECL(void) RTMemExecFree(void *pv, size_t cb) RT_NO_THROW 753 RTDECL(void) RTMemExecFree(void *pv, size_t cb) RT_NO_THROW_DEF 754 754 { 755 755 return rtMemPagePosixFree(pv, cb, &g_MemExecPosixHeap); -
trunk/src/VBox/Runtime/r3/posix/rtmempage-exec-mmap-posix.cpp
r57358 r57432 112 112 113 113 114 RTDECL(void *) RTMemPageAllocTag(size_t cb, const char *pszTag) RT_NO_THROW 114 RTDECL(void *) RTMemPageAllocTag(size_t cb, const char *pszTag) RT_NO_THROW_DEF 115 115 { 116 116 return rtMemPagePosixAlloc(cb, pszTag, false /*fZero*/, 0); … … 118 118 119 119 120 RTDECL(void *) RTMemPageAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW 120 RTDECL(void *) RTMemPageAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW_DEF 121 121 { 122 122 return rtMemPagePosixAlloc(cb, pszTag, true /*fZero*/, 0); … … 124 124 125 125 126 RTDECL(void) RTMemPageFree(void *pv, size_t cb) RT_NO_THROW 126 RTDECL(void) RTMemPageFree(void *pv, size_t cb) RT_NO_THROW_DEF 127 127 { 128 128 return rtMemPagePosixFree(pv, cb); … … 133 133 134 134 135 RTDECL(void *) RTMemExecAllocTag(size_t cb, const char *pszTag) RT_NO_THROW 135 RTDECL(void *) RTMemExecAllocTag(size_t cb, const char *pszTag) RT_NO_THROW_DEF 136 136 { 137 137 return rtMemPagePosixAlloc(cb, pszTag, false /*fZero*/, PROT_EXEC); … … 139 139 140 140 141 RTDECL(void) RTMemExecFree(void *pv, size_t cb) RT_NO_THROW 141 RTDECL(void) RTMemExecFree(void *pv, size_t cb) RT_NO_THROW_DEF 142 142 { 143 143 return rtMemPagePosixFree(pv, cb); -
trunk/src/VBox/Runtime/r3/win/alloc-win.cpp
r57358 r57432 44 44 45 45 46 RTDECL(void *) RTMemExecAllocTag(size_t cb, const char *pszTag) RT_NO_THROW 46 RTDECL(void *) RTMemExecAllocTag(size_t cb, const char *pszTag) RT_NO_THROW_DEF 47 47 { 48 48 /* … … 71 71 72 72 73 RTDECL(void) RTMemExecFree(void *pv, size_t cb) RT_NO_THROW 73 RTDECL(void) RTMemExecFree(void *pv, size_t cb) RT_NO_THROW_DEF 74 74 { 75 75 if (pv) … … 78 78 79 79 80 RTDECL(void *) RTMemPageAllocTag(size_t cb, const char *pszTag) RT_NO_THROW 80 RTDECL(void *) RTMemPageAllocTag(size_t cb, const char *pszTag) RT_NO_THROW_DEF 81 81 { 82 82 #ifdef USE_VIRTUAL_ALLOC … … 90 90 91 91 92 RTDECL(void *) RTMemPageAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW 92 RTDECL(void *) RTMemPageAllocZTag(size_t cb, const char *pszTag) RT_NO_THROW_DEF 93 93 { 94 94 #ifdef USE_VIRTUAL_ALLOC … … 107 107 108 108 109 RTDECL(void) RTMemPageFree(void *pv, size_t cb) RT_NO_THROW 109 RTDECL(void) RTMemPageFree(void *pv, size_t cb) RT_NO_THROW_DEF 110 110 { 111 111 if (pv) … … 121 121 122 122 123 RTDECL(int) RTMemProtect(void *pv, size_t cb, unsigned fProtect) RT_NO_THROW 123 RTDECL(int) RTMemProtect(void *pv, size_t cb, unsigned fProtect) RT_NO_THROW_DEF 124 124 { 125 125 /* -
trunk/src/VBox/VMM/VMMAll/IEMAll.cpp
r57358 r57432 146 146 typedef VBOXSTRICTRC (__fastcall * PFNIEMOP)(PIEMCPU pIemCpu); 147 147 # 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 149 149 # 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 151 151 # 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 153 153 154 154 #elif defined(__GNUC__) … … 164 164 typedef VBOXSTRICTRC (* PFNIEMOP)(PIEMCPU pIemCpu); 165 165 # 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 167 167 # 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 169 169 # 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 171 171 172 172 #endif -
trunk/src/VBox/VMM/testcase/tstIEMCheckMc.cpp
r57358 r57432 75 75 typedef VBOXSTRICTRC (* PFNIEMOP)(PIEMCPU pIemCpu); 76 76 #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 78 78 #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 80 80 #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 82 82 83 83 #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.