VirtualBox

Changeset 22801 in vbox


Ignore:
Timestamp:
Sep 7, 2009 11:00:36 AM (15 years ago)
Author:
vboxsync
Message:

iprt/cdefs.h: Added DECL_INVALID(type).

File:
1 edited

Legend:

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

    r21398 r22801  
    572572#else
    573573# define DECLHIDDEN(type)       __attribute__((visibility("hidden"))) type
     574#endif
     575
     576/** @def DECL_INVALID
     577 * How to declare a function not available for linking in the current context.
     578 * The purpose is to create compile or like time errors when used.  This isn't
     579 * possible on all platforms.
     580 * @param   type    The return type of the function.
     581 */
     582#if defined(_MSC_VER)
     583# define DECL_INVALID(type)     __declspec(dllimport) type __stdcall
     584#elif defined(__GNUC__) && defined(__cplusplus)
     585# define DECL_INVALID(type)     extern "C++" type
     586#else
     587# define DECL_INVALID(type)     type
    574588#endif
    575589
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