diff --git a/include/sys/__assert.h b/include/sys/__assert.h index a8fc93961cd..a4f1824ff05 100644 --- a/include/sys/__assert.h +++ b/include/sys/__assert.h @@ -80,9 +80,19 @@ #endif #if __ASSERT_ON + #include + +#ifdef __cplusplus +extern "C" { +#endif + void assert_post_action(const char *file, unsigned int line); +#ifdef __cplusplus +} +#endif + #define __ASSERT_LOC(test) \ printk("ASSERTION FAIL [%s] @ %s:%d\n", \ Z_STRINGIFY(test), \