This commit centralizes equality-check behavior and removes duplicated macro implementations across protocol stacks. Major changes: - add `common/utils/eq_check.h` with shared `_EQ_CHECK_*`, `EQ_CHECK_GENERIC`, and optional-IE pointer helpers - replace E1AP/F1AP/NAS local equality macros and call sites with the shared helpers - remove duplicated layer-specific error/equality macro definitions from common headers and switch includes to `eq_check.h` - update CMake test flags to define `ENABLE_TESTS` for `e1ap_lib`, and 5GS NAS libraries; drop `E1AP_LOG_ERRORS` - equality-check/error printing is now consistently controlled by `ENABLE_TESTS`
16 lines
383 B
CMake
16 lines
383 B
CMake
add_library(e1ap_lib OBJECT
|
|
e1ap_bearer_context_management.c
|
|
e1ap_interface_management.c
|
|
e1ap_lib_common.c
|
|
)
|
|
|
|
target_link_libraries(e1ap_lib PRIVATE asn1_e1ap)
|
|
target_include_directories(e1ap_lib PUBLIC
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
)
|
|
|
|
if(ENABLE_TESTS)
|
|
target_compile_definitions(e1ap_lib PRIVATE ENABLE_TESTS)
|
|
endif()
|
|
|