- improve the interface of rtti to pass meta_obj_t* as parameter of type function to easy to access private/data

- rename some macro with RTTI
- add RTTI_MAGIC in object header
- add new rtti api
This commit is contained in:
Rongsong Shen 2026-01-30 12:26:23 +08:00
parent c8c1749347
commit f78ed03591
15 changed files with 252 additions and 114 deletions

View file

@ -5,17 +5,17 @@
void setUp(void)
{
printf("\n");
return;
}
void tearDown(void)
{
printf("\n");
printf(">>");
return;
}
extern void test_iter(void);
extern void test_invalid(void);
#define TEST(x) x()
@ -24,6 +24,7 @@ int main(int argc, char* argv[])
UNITY_BEGIN();
TEST(test_iter);
TEST(test_invalid);
return UNITY_END();
}