VirtualBox

Changeset 62624 in vbox for trunk


Ignore:
Timestamp:
Jul 28, 2016 3:01:54 PM (8 years ago)
Author:
vboxsync
Message:

iprt/cdefs.h: Added 6 RT_NOREFn(...) macros as shorthand for RT_NOREF_PV.

File:
1 edited

Legend:

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

    r62473 r62624  
    27682768#define NIL_OFFSET   (~0U)
    27692769
     2770
    27702771/** @def NOREF
    27712772 * Keeps the compiler from bitching about an unused parameter, local variable,
     
    27842785# define RT_NOREF_PV(var)       (void)(var)
    27852786#endif
     2787
     2788/** @def RT_NOREF1
     2789 * RT_NOREF_PV shorthand taking on parameter.
     2790 */
     2791#define RT_NOREF1(var1)                                 RT_NOREF_PV(var1)
     2792/** @def RT_NOREF2
     2793 * RT_NOREF_PV shorthand taking two parameters.
     2794 */
     2795#define RT_NOREF2(var1, var2)                           RT_NOREF_PV(var1); RT_NOREF1(var2)
     2796/** @def RT_NOREF3
     2797 * RT_NOREF_PV shorthand taking three parameters.
     2798 */
     2799#define RT_NOREF3(var1, var2, var3)                     RT_NOREF_PV(var1); RT_NOREF2(var2, var3)
     2800/** @def RT_NOREF4
     2801 * RT_NOREF_PV shorthand taking four parameters.
     2802 */
     2803#define RT_NOREF4(var1, var2, var3, var4)               RT_NOREF_PV(var1); RT_NOREF3(var2, var3, var4)
     2804/** @def RT_NOREF5
     2805 * RT_NOREF_PV shorthand taking five parameters.
     2806 */
     2807#define RT_NOREF5(var1, var2, var3, var4, var5)         RT_NOREF_PV(var1); RT_NOREF4(var2, var3, var4, var5)
     2808/** @def RT_NOREF6
     2809 * RT_NOREF_PV shorthand taking six parameters.
     2810 */
     2811#define RT_NOREF6(var1, var2, var3, var4, var5, var6)   RT_NOREF_PV(var1); RT_NOREF5(var2, var3, var4, var5, var6)
     2812
    27862813
    27872814/** @def RT_BREAKPOINT
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