VirtualBox

Changeset 22400 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Aug 24, 2009 5:23:05 AM (15 years ago)
Author:
vboxsync
Message:

NAT: Helping macros for counters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/counters.h

    r22249 r22400  
    2424 */
    2525
    26 #ifndef PROFILE_COUNTER
    27 # error PROFILE_COUNTER is not defied
     26#if !defined(PROFILE_COUNTER) && !(DRV_PROFILE_COUNTER)
     27# error (DRV_)PROFILE_COUNTER is not defied
    2828#endif
    29 #ifndef COUNTING_COUNTER
    30 # error COUNTING_COUNTER is not defined
     29#if !defined(COUNTING_COUNTER) && !(DRV_COUNTING_COUNTER)
     30# error (DRV_)COUNTING_COUNTER is not defined
     31#endif
     32
     33/*
     34 * DRV_ prefixed are counters used in DrvNAT the rest are used in Slirp
     35 */
     36#ifdef DRV_PROFILE_COUNTER
     37# define PROFILE_COUNTER(name, dsc) do {} while (0)
     38#endif
     39#ifdef DRV_COUNTING_COUNTER
     40# define COUNTING_COUNTER(name, dsc) do {} while (0)
     41#endif
     42
     43#ifdef PROFILE_COUNTER
     44# define DRV_PROFILE_COUNTER(name, dsc) do {} while (0)
     45#endif
     46#ifdef COUNTING_COUNTER
     47# define DRV_COUNTING_COUNTER(name, dsc) do {} while (0)
    3148#endif
    3249
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