Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
e1782042
Commit
e1782042
authored
Mar 14, 2017
by
Damien George
Browse files
teensy/lexerfrozen: Make mp_lexer_new_from_file raise an exception.
parent
97142000
Changes
1
Hide whitespace changes
Inline
Side-by-side
teensy/lexerfrozen.c
View file @
e1782042
#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
)
;
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment