forked from Imagelibrary/lwip
Re-add a few MEMP stats accessors - users may want to access/display MEMP stats
This commit is contained in:
@@ -371,8 +371,12 @@ void stats_init(void);
|
||||
|
||||
#if MEMP_STATS
|
||||
#define MEMP_STATS_DEC(x, i) STATS_DEC(memp[i]->x)
|
||||
#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_DISPLAY(i)
|
||||
#define MEMP_STATS_GET(x, i) 0
|
||||
#endif
|
||||
|
||||
#if SYS_STATS
|
||||
|
||||
Reference in New Issue
Block a user