Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
1556af19
Commit
1556af19
authored
Mar 26, 2019
by
Damien George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpy-cross: Support compiling with MICROPY_PY___FILE__ enabled.
parent
74d07469
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
mpy-cross/main.c
mpy-cross/main.c
+1
-3
No files found.
mpy-cross/main.c
View file @
1556af19
...
...
@@ -67,9 +67,7 @@ STATIC int compile_and_save(const char *file, const char *output_file, const cha
}
#if MICROPY_PY___FILE__
if
(
input_kind
==
MP_PARSE_FILE_INPUT
)
{
mp_store_global
(
MP_QSTR___file__
,
MP_OBJ_NEW_QSTR
(
source_name
));
}
mp_store_global
(
MP_QSTR___file__
,
MP_OBJ_NEW_QSTR
(
source_name
));
#endif
mp_parse_tree_t
parse_tree
=
mp_parse
(
lex
,
MP_PARSE_FILE_INPUT
);
...
...
Write
Preview
Markdown
is supported
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