实现信号槽机制自动化脚本
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user