Code Review
/
o-du
/
phy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Front Haul Interface Library update to first seed code contribution
[o-du/phy.git]
/
fhi_lib
/
lib
/
src
/
xran_printf.h
diff --git
a/fhi_lib/lib/src/xran_printf.h
b/fhi_lib/lib/src/xran_printf.h
index
6caee87
..
8649b01
100644
(file)
--- 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
/**
* @brief Modules provide debug prints and utility functions
* @file xran_printf.h
@@
-101,7
+100,16
@@
extern "C" {
#endif /* _IASSERT_*/
#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
}
#ifdef __cplusplus
}