aboutsummaryrefslogtreecommitdiff
path: root/ports/teensy/lexerfrozen.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/teensy/lexerfrozen.c')
-rw-r--r--ports/teensy/lexerfrozen.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/ports/teensy/lexerfrozen.c b/ports/teensy/lexerfrozen.c
new file mode 100644
index 000000000..21e978dc7
--- /dev/null
+++ b/ports/teensy/lexerfrozen.c
@@ -0,0 +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) {
+ mp_raise_OSError(MP_ENOENT);
+}