選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

slist.h 485B

123456789101112131415161718192021222324
  1. /*
  2. * @Author: your name
  3. * @Date: 2021-06-20 17:11:26
  4. * @LastEditTime: 2021-06-20 18:05:33
  5. * @LastEditors: Please set LastEditors
  6. * @Description: In User Settings Edit
  7. * @FilePath: \slist\slist.h
  8. */
  9. #ifndef _SLIST_H_
  10. #define _SLIST_H_
  11. #define PKT_ASSERT(x) {if ((x) == NULL) {printf("%s %d: assert failed!", __FUNCTION__, __LINE__); while(1);}}
  12. typedef int data_type;
  13. typedef struct pkt_node *pkt_node_t;
  14. struct pkt_node
  15. {
  16. pkt_node_t next;
  17. data_type data;
  18. };
  19. #endif