mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
Re-add a few MEMP stats accessors - users may want to access/display MEMP stats
This commit is contained in:
parent
b939e9536d
commit
e0918d706e
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user