VirtualBox

Ignore:
Timestamp:
Jul 30, 2008 10:47:04 PM (16 years ago)
Author:
vboxsync
Message:

iprt: Added a RT_NO_THROW macro for wrapping up the throw() stuff, applying it to mem.h and rand.h to try make RTMemAutoPtr work as efficiently as the pure C version of the stuff.

File:
1 edited

Legend:

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

    r8245 r11019  
    4646 * @param   cb      The amount of memory to duplicate.
    4747 */
    48 RTDECL(void *) RTMemDup(const void *pvSrc, size_t cb)
     48RTDECL(void *) RTMemDup(const void *pvSrc, size_t cb) RT_NO_THROW
    4949{
    5050    void *pvDst = RTMemAlloc(cb);
     
    6565 * @param   cbExtra The amount of extra memory to allocate and zero.
    6666 */
    67 RTDECL(void *) RTMemDupEx(const void *pvSrc, size_t cbSrc, size_t cbExtra)
     67RTDECL(void *) RTMemDupEx(const void *pvSrc, size_t cbSrc, size_t cbExtra) RT_NO_THROW
    6868{
    6969    void *pvDst = RTMemAlloc(cbSrc + cbExtra);
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