core: add prints to main loop

This commit is contained in:
Pavol Rusnak 2017-05-15 19:33:35 +02:00
parent 3fcbf7179b
commit 65ee44b636
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
1 changed files with 3 additions and 0 deletions

View File

@ -48,6 +48,7 @@ int main(void) {
}
for (;;) {
printf("CORE: Starting main loop\n");
// Stack limit should be less than real stack size, so we have a chance
// to recover from limit hit.
mp_stack_set_top(&_estack);
@ -63,9 +64,11 @@ int main(void) {
mp_obj_list_append(mp_sys_path, MP_OBJ_NEW_QSTR(MP_QSTR_)); // current dir (or base dir of the script)
// Run the main script
printf("CORE: Executing main script\n");
pyexec_frozen_module("main.py");
// Run REPL
printf("CORE: Executing REPL\n");
for (;;) {
if (pyexec_friendly_repl() != 0) {
break;