summaryrefslogtreecommitdiffstatshomepage
path: root/py/lexer.h
diff options
context:
space:
mode:
Diffstat (limited to 'py/lexer.h')
-rw-r--r--py/lexer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/py/lexer.h b/py/lexer.h
index 17c472d983..36d1e99d23 100644
--- a/py/lexer.h
+++ b/py/lexer.h
@@ -194,4 +194,8 @@ typedef enum {
mp_import_stat_t mp_import_stat(const char *path);
mp_lexer_t *mp_lexer_new_from_file(const char *filename);
+#if MICROPY_HELPER_LEXER_UNIX
+mp_lexer_t *mp_lexer_new_from_fd(qstr filename, int fd, bool close_fd);
+#endif
+
#endif // __MICROPY_INCLUDED_PY_LEXER_H__