Re-add a few MEMP stats accessors - users may want to access/display MEMP stats

This commit is contained in:
Dirk Ziegelmeier 2016-07-08 08:17:46 +02:00
parent b939e9536d
commit e0918d706e

View File

@ -369,10 +369,14 @@ void stats_init(void);
#define MEM_STATS_DISPLAY() #define MEM_STATS_DISPLAY()
#endif #endif
#if MEMP_STATS #if MEMP_STATS
#define MEMP_STATS_DEC(x, i) STATS_DEC(memp[i]->x) #define MEMP_STATS_DEC(x, i) STATS_DEC(memp[i]->x)
#else #define MEMP_STATS_DISPLAY(i) stats_display_memp(lwip_stats.memp[i], i)
#define MEMP_STATS_GET(x, i) STATS_GET(memp[i]->x)
#else
#define MEMP_STATS_DEC(x, i) #define MEMP_STATS_DEC(x, i)
#define MEMP_STATS_DISPLAY(i)
#define MEMP_STATS_GET(x, i) 0
#endif #endif
#if SYS_STATS #if SYS_STATS