teensy/lexerfrozen: Make mp_lexer_new_from_file raise an exception.

pull/2942/head
Damien George 2017-03-14 11:45:09 +11:00
rodzic 97142000f7
commit e1782042f5
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -1,11 +1,13 @@
#include <stdio.h>
#include "py/lexer.h"
#include "py/runtime.h"
#include "py/mperrno.h"
mp_import_stat_t mp_import_stat(const char *path) {
return MP_IMPORT_STAT_NO_EXIST;
}
mp_lexer_t *mp_lexer_new_from_file(const char *filename) {
return NULL;
mp_raise_OSError(MP_ENOENT);
}