实现信号槽机制自动化脚本

This commit is contained in:
2025-06-24 16:32:32 +08:00
parent 1d747d96fd
commit d9baa7f7a3
6 changed files with 407 additions and 80 deletions

View File

@@ -61,6 +61,7 @@ void _connect(void* sig_obj, void* sig_fun, mythread_t* thread, void* slot_obj,
slot_list* slot_p = calloc(sizeof(slot_list), 1);
slot_p->slot_obj = slot_obj;
slot_p->func = signal_find_slot_func(slot_fun);
slot_p->signal_func = sig_fun;
if (!slot_p->func) {
// 找不到槽函数,无法连接
free(slot_p);