pikapython/package/network/_network_common.h
2023-12-28 00:14:01 +08:00

14 lines
477 B
C

#ifndef _H_NETOWRK_COMMON_H_
#define _H_NETOWRK_COMMON_H_
#include "_network_NET.h"
#define _net_check_res(res) \
if (res != 0) { \
pika_platform_printf("_net_check_res failed: %d, at %s:%d:%s()\r\n", \
res, __FILE__, __LINE__, __FUNCTION__); \
}
#define _NET_OBJ_2DEV(_self) obj_getPtr((_self), "hal_dev");
#endif