Add a new macro, REGISTER_UNITTEST(), that will automatically make sure
we call hap_register_unittest(), instead of having to create a function
that will do so.
#ifdef DEBUG_UNIT
void hap_register_unittest(const char *name, int (*fct)());
+/* Simplified way to register a unit test */
+#define REGISTER_UNITTEST(name, fct) \
+ INITCALL2(STG_REGISTER, hap_register_unittest, name, (fct))
#else
#define hap_register_unittest(a,b) ({})
+#define REGISTER_UNITTEST(name, fct)
#endif
/* simplified way to declare a pre-check callback in a file */