VirtualBox

Changeset 11154 in vbox for trunk/include


Ignore:
Timestamp:
Aug 5, 2008 10:57:27 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
34144
Message:

cdefs: new macro - CTX_SUFF - for R3,R0 and RC suffixes.

File:
1 edited

Legend:

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

    r11030 r11154  
    320320#else
    321321# define CTXALLSUFF(var)    var##R3
     322#endif
     323
     324/** @def CTX_SUFF
     325 * Adds the suffix of the current context to the passed in
     326 * identifier name. The suffix is R3, R0 or RC.
     327 *
     328 * This is macro should only be used in shared code to avoid a forrest of ifdefs.
     329 * @param   var     Identifier name.
     330 *
     331 * @remark  This will replace CTXALLSUFF and CTXSUFF before long.
     332 */
     333#ifdef IN_GC
     334# define CTX_SUFF(var)      var##RC
     335#elif defined(IN_RING0)
     336# define CTX_SUFF(var)      var##R0
     337#else
     338# define CTX_SUFF(var)      var##R3
    322339#endif
    323340
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