tcpip_priv.h: More flexible API by including return value in API_VAR_ALLOC macro

This commit is contained in:
Dirk Ziegelmeier
2016-04-25 21:00:28 +02:00
parent 0d0b935d3d
commit 5a123a3405
4 changed files with 8 additions and 8 deletions

View File

@@ -51,7 +51,7 @@
#define TCPIP_MSG_VAR_REF(name) API_VAR_REF(name)
#define TCPIP_MSG_VAR_DECLARE(name) API_VAR_DECLARE(struct tcpip_msg, name)
#define TCPIP_MSG_VAR_ALLOC(name) API_VAR_ALLOC(struct tcpip_msg, MEMP_TCPIP_MSG_API, name)
#define TCPIP_MSG_VAR_ALLOC(name) API_VAR_ALLOC(struct tcpip_msg, MEMP_TCPIP_MSG_API, name, ERR_MEM)
#define TCPIP_MSG_VAR_FREE(name) API_VAR_FREE(MEMP_TCPIP_MSG_API, name)
/* global variables */