From e50c062084227288bd8ede65c7dc6cbf95074bb0 Mon Sep 17 00:00:00 2001 From: Francisco Paisana Date: Thu, 14 Feb 2019 14:38:08 +0000 Subject: [PATCH] added extra separator comments --- lib/include/srslte/asn1/rrc_asn1.h | 4 ++-- lib/src/asn1/rrc_asn1.cc | 6 +++++- lib/src/asn1/rrc_asn1_enum.cc | 6 +++++- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/lib/include/srslte/asn1/rrc_asn1.h b/lib/include/srslte/asn1/rrc_asn1.h index 9d3c3274a..45943d95f 100644 --- a/lib/include/srslte/asn1/rrc_asn1.h +++ b/lib/include/srslte/asn1/rrc_asn1.h @@ -1,5 +1,5 @@ /* -Copyright 2013-2017 Software Radio Systems Limited +Copyright 2019 Software Radio Systems Limited This file is part of srsLTE @@ -71,7 +71,7 @@ inline void assert_choice_type(const std::string& access_type, const std::string } template -inline NumType get_enum_number(NumType* array, uint32_t nof_types, uint32_t enum_val, const char* enum_type) +NumType get_enum_number(NumType* array, uint32_t nof_types, uint32_t enum_val, const char* enum_type) { if (enum_val >= nof_types) { rrc_log_print(LOG_LEVEL_ERROR, "The provided enum value=%d of type %s cannot be translated into a number\n", diff --git a/lib/src/asn1/rrc_asn1.cc b/lib/src/asn1/rrc_asn1.cc index 2d8efb897..ec2e85ad0 100644 --- a/lib/src/asn1/rrc_asn1.cc +++ b/lib/src/asn1/rrc_asn1.cc @@ -1,5 +1,5 @@ /* -Copyright 2013-2017 Software Radio Systems Limited +Copyright 2019 Software Radio Systems Limited This file is part of srsLTE @@ -24,6 +24,10 @@ and at http://www.gnu.org/licenses/. using namespace asn1; using namespace asn1::rrc; +/******************************************************************************* +/* Helper Functions +/******************************************************************************/ + #define rrc_asn1_warn_assert(cond, file, line) \ if ((cond)) { \ rrc_log_print(LOG_LEVEL_WARN, "Assertion in [%s][%d] failed.\n", (file), (line)); \ diff --git a/lib/src/asn1/rrc_asn1_enum.cc b/lib/src/asn1/rrc_asn1_enum.cc index df0886ede..df1cbdba5 100644 --- a/lib/src/asn1/rrc_asn1_enum.cc +++ b/lib/src/asn1/rrc_asn1_enum.cc @@ -1,5 +1,5 @@ /* -Copyright 2013-2017 Software Radio Systems Limited +Copyright 2019 Software Radio Systems Limited This file is part of srsLTE @@ -24,6 +24,10 @@ and at http://www.gnu.org/licenses/. using namespace asn1; using namespace asn1::rrc; +/******************************************************************************* +/* Helper Functions +/******************************************************************************/ + static void invalid_enum_value(int value, const char* name) { rrc_log_print(LOG_LEVEL_ERROR, "The provided enum value=%d of type %s is not recognized\n", value, name);