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