Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-RAN
Commits
d820c187
Commit
d820c187
authored
Dec 19, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OPT: Replace AssertFatal with static_assert
See parent commit
parent
2f43b343
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
openair2/UTIL/OPT/probe.c
openair2/UTIL/OPT/probe.c
+2
-1
No files found.
openair2/UTIL/OPT/probe.c
View file @
d820c187
...
...
@@ -529,8 +529,9 @@ void trace_pdu_implementation(ws_trace_t *t)
int
init_opt
(
void
)
{
paramdef_t
opt_params
[]
=
OPT_PARAMS_DESC
;
checkedparam_t
opt_checkParams
[]
=
OPTPARAMS_CHECK_DESC
;
static_assert
(
sizeofArray
(
opt_params
)
==
sizeofArray
(
opt_checkParams
),
"opt_params and opt_checkParams should have the same size"
);
int
sz
=
sizeofArray
(
opt_params
);
AssertFatal
(
sz
==
sizeofArray
(
opt_checkParams
),
"Error in arrays size (%d!=%lu)
\n
"
,
sz
,
sizeofArray
(
opt_checkParams
));
config_set_checkfunctions
(
opt_params
,
opt_checkParams
,
sz
);
config_get
(
config_get_if
(),
opt_params
,
sz
,
OPT_CONFIGPREFIX
);
subframesSinceCaptureStart
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment