X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=o-du%2Fphy.git;a=blobdiff_plain;f=fhi_lib%2Flib%2Fsrc%2Fxran_printf.h;h=8649b017fef0f8045779a3c897f02d46c20a0143;hp=6caee87631c1d49c2215803e80d90f4eec9f49b9;hb=cef07f74965b1749dd909fc1322e211489fea2ea;hpb=bc60e3a69129edf1c21a01683f84a77483f6e3cc diff --git a/fhi_lib/lib/src/xran_printf.h b/fhi_lib/lib/src/xran_printf.h index 6caee87..8649b01 100644 --- a/fhi_lib/lib/src/xran_printf.h +++ b/fhi_lib/lib/src/xran_printf.h @@ -16,7 +16,6 @@ * *******************************************************************************/ - /** * @brief Modules provide debug prints and utility functions * @file xran_printf.h @@ -101,7 +100,16 @@ extern "C" { #endif /* _IASSERT_*/ - +#ifdef CHECK_PARAMS +#define CHECK_NOT_NULL(param, returnValue) \ +if (param == NULL) \ +{ \ + print_err("%s is NULL!\n", #param); \ + return returnValue; \ +} +#else +#define CHECK_NOT_NULL(param, returnValue) +#endif #ifdef __cplusplus }