_network_common.h 477 B

12345678910111213
  1. #ifndef _H_NETOWRK_COMMON_H_
  2. #define _H_NETOWRK_COMMON_H_
  3. #include "_network_NET.h"
  4. #define _net_check_res(res) \
  5. if (res != 0) { \
  6. pika_platform_printf("_net_check_res failed: %d, at %s:%d:%s()\r\n", \
  7. res, __FILE__, __LINE__, __FUNCTION__); \
  8. }
  9. #define _NET_OBJ_2DEV(_self) obj_getPtr((_self), "hal_dev");
  10. #endif