Commit e1782042 authored by Damien George's avatar Damien George

teensy/lexerfrozen: Make mp_lexer_new_from_file raise an exception.

parent 97142000
#include <stdio.h> #include <stdio.h>
#include "py/lexer.h" #include "py/lexer.h"
#include "py/runtime.h"
#include "py/mperrno.h"
mp_import_stat_t mp_import_stat(const char *path) { mp_import_stat_t mp_import_stat(const char *path) {
return MP_IMPORT_STAT_NO_EXIST; return MP_IMPORT_STAT_NO_EXIST;
} }
mp_lexer_t *mp_lexer_new_from_file(const char *filename) { mp_lexer_t *mp_lexer_new_from_file(const char *filename) {
return NULL; mp_raise_OSError(MP_ENOENT);
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment