Update main.c

This commit is contained in:
Paul m. p. P 2019-07-04 00:55:22 +02:00 committed by GitHub
parent 24a93b0355
commit 935050905c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -241,12 +241,15 @@ mp_lexer_t *mp_lexer_new_from_file(const char *filename) {
mp_import_stat_t mp_import_stat(const char *path) {
return MP_IMPORT_STAT_NO_EXIST;
}
#ifndef WASM_FILE_API
#if !MICROPY_PY_IO_FILEIO
mp_obj_t mp_builtin_open(size_t n_args, const mp_obj_t *args, mp_map_t *kwargs) {
return mp_const_none;
}
MP_DEFINE_CONST_FUN_OBJ_KW(mp_builtin_open_obj, 1, mp_builtin_open);
#endif
#endif
void nlr_jump_fail(void *val) {
while (1);