On 1/24/25 10:10 AM, Jerome Forissier wrote:
+#define INITCALL(_call) \
+       do { \
+               if (_call()) { \
+                       printf("%s(): initcall %s() failed\n", __func__, \
+                              #_call); \
+                       hang(); \
+               } \
+       } while (0)

Can this be turned into some static inline function too , so typechecking would be retained ? Maybe the function can be passed in a function pointer to call ?

Reply via email to