Add main.c to codeformat

This commit is contained in:
Jeff Epler 2021-11-08 08:21:43 -06:00
parent c607efe557
commit 2bcfb15283
2 changed files with 45 additions and 43 deletions

9
main.c Executable file → Normal file
View File

@ -254,8 +254,7 @@ STATIC void cleanup_after_vm(supervisor_allocation* heap, mp_obj_t exception) {
mp_obj_print_exception(&print, exception);
((char *)prev_traceback_allocation->ptr)[traceback_len] = '\0';
}
}
else {
} else {
prev_traceback_allocation = NULL;
}
}
@ -912,12 +911,14 @@ void gc_collect(void) {
void NORETURN nlr_jump_fail(void *val) {
reset_into_safe_mode(MICROPY_NLR_JUMP_FAIL);
while (true) {}
while (true) {
}
}
void NORETURN __fatal_error(const char *msg) {
reset_into_safe_mode(MICROPY_FATAL_ERROR);
while (true) {}
while (true) {
}
}
#ifndef NDEBUG

View File

@ -38,6 +38,7 @@ import subprocess
# Relative to top-level repo dir.
PATHS = [
# C
"main.c",
"devices/**/*.[ch]",
"drivers/bus/*.[ch]",
"extmod/*.[ch]",