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

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

33
test/signal_test.h Normal file
View File

@@ -0,0 +1,33 @@
#include "mysignal.h"
typedef struct {
SIG_OBJ;
int test_var;
}test_sig_obj;
signal test_signal(test_sig_obj* t, int a, int b);
signal test_signal2(test_sig_obj* t, int a, int b,const char*c);
typedef struct {
SIG_OBJ;
int test_var;
}test_sig_obj2;
slot test_slot(test_sig_obj2* obj, int a, int b);
typedef struct {
SIG_OBJ;
int test_var;
int test_var2;
}test_sig_obj3;
slot test_slot3(test_sig_obj3* obj, int a, int b);
slot test_slot3_2(test_sig_obj3* obj, int a, int b,const char*c);