Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
897129a7
Commit
897129a7
authored
Sep 27, 2016
by
Damien George
Browse files
py/objstr: Remove unreachable function used only for terse error msgs.
parent
290daa15
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/objstr.c
View file @
897129a7
...
...
@@ -881,9 +881,14 @@ STATIC mp_obj_t arg_as_int(mp_obj_t arg) {
return
arg
;
}
#if MICROPY_ERROR_REPORTING == MICROPY_ERROR_REPORTING_TERSE
STATIC
NORETURN
void
terse_str_format_value_error
(
void
)
{
mp_raise_ValueError
(
"bad format string"
);
}
#else
// define to nothing to improve coverage
#define terse_str_format_value_error()
#endif
STATIC
vstr_t
mp_obj_str_format_helper
(
const
char
*
str
,
const
char
*
top
,
int
*
arg_i
,
mp_uint_t
n_args
,
const
mp_obj_t
*
args
,
mp_map_t
*
kwargs
)
{
vstr_t
vstr
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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