状态机跳转执行代码简化 #include<stdio.h>#define STATE_1 0x0#define STATE_2 0x1typedef void (*demo_test_func)(int);typedef struct demo_msg_tag{ int msg_type; demo_test_func test_entry;}demo_msg_t;voi... C语言 2023-05-23 46 点赞 0 评论 69 浏览