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
34e7b67d
Commit
34e7b67d
authored
Jun 14, 2014
by
mux
Browse files
Add __assert_func
* issue #692
parent
8340c483
Changes
1
Hide whitespace changes
Inline
Side-by-side
stmhal/main.c
View file @
34e7b67d
...
...
@@ -115,6 +115,12 @@ void nlr_jump_fail(void *val) {
__fatal_error
(
""
);
}
void
__assert_func
(
const
char
*
file
,
int
line
,
const
char
*
func
,
const
char
*
expr
)
{
(
void
)
func
;
printf
(
"Assertion '%s' failed, at file %s:%d
\n
"
,
expr
,
file
,
line
);
__fatal_error
(
""
);
}
STATIC
mp_obj_t
pyb_config_source_dir
=
MP_OBJ_NULL
;
STATIC
mp_obj_t
pyb_config_main
=
MP_OBJ_NULL
;
STATIC
mp_obj_t
pyb_config_usb_mode
=
MP_OBJ_NULL
;
...
...
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