VirtualBox

Changeset 41307 in vbox for trunk/include


Ignore:
Timestamp:
May 15, 2012 12:09:10 PM (13 years ago)
Author:
vboxsync
Message:

Runtime/common/log/log: make g_Logger weak which is the better solution

File:
1 edited

Legend:

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

    r41006 r41307  
    736736#else
    737737# define DECLNORETURN(type)     type
     738#endif
     739
     740/** @def DECLWEAK
     741 * How to declare a variable which is not necessarily resolved at
     742 * runtime.
     743 * @note: This macro can be combined with other macros, for example
     744 * @code
     745 *   EMR3DECL(DECLWEAK(int)) foo;
     746 * @endcode
     747 */
     748#if defined(__GNUC__)
     749# define DECLWEAK(type)         type __attribute__((weak))
     750#else
     751# define DECLWEAK(type)         type
    738752#endif
    739753
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