@@ -358,11 +358,17 @@ OF_STRINGIFY(__LINE__), \ "Failed to ensure condition:\n" #cond); \ } while(0) #else @class OFConstantString; +# ifdef __cplusplus +extern "C" { +# endif extern void OFLog(OFConstantString *_Nonnull, ...); +# ifdef __cplusplus +} +# endif # define OFEnsure(cond) \ do { \ if OF_UNLIKELY (!(cond)) { \ OFLog(@"Failed to ensure condition in " \ @__FILE__ ":%d: " @#cond, __LINE__); \