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
b4395406
Commit
b4395406
authored
Dec 19, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
softmodem-common: Replace AssertFatal with static_assert
See also parent commit
parent
acae0dc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
executables/softmodem-common.c
executables/softmodem-common.c
+3
-2
No files found.
executables/softmodem-common.c
View file @
b4395406
...
...
@@ -116,9 +116,10 @@ void get_common_options(configmodule_interface_t *cfg, uint32_t execmask)
paramdef_t
cmdline_logparams
[]
=
CMDLINE_LOGPARAMS_DESC
;
checkedparam_t
cmdline_log_CheckParams
[]
=
CMDLINE_LOGPARAMS_CHECK_DESC
;
int
numlogparams
=
sizeofArray
(
cmdline_logparams
);
AssertFatal
(
numlogparams
==
sizeofArray
(
cmdline_log_CheckParams
),
"Error in arrays size (%d!=%lu)
\n
"
,
numlogparams
,
sizeofArray
(
cmdline_log_CheckParams
)
);
static_assert
(
sizeofArray
(
cmdline_logparams
)
==
sizeofArray
(
cmdline_log_CheckParams
),
"cmdline_logparams and cmdline_log_CheckParams should have the same size"
);
int
numlogparams
=
sizeofArray
(
cmdline_logparams
);
config_set_checkfunctions
(
cmdline_logparams
,
cmdline_log_CheckParams
,
numlogparams
);
config_get
(
cfg
,
cmdline_logparams
,
numlogparams
,
NULL
);
...
...
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