Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
e2548095
Commit
e2548095
authored
Mar 22, 2014
by
Damien George
Browse files
Merge branch 'master' of github.com:micropython/micropython
parents
908a670d
8dc768b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/objgenerator.c
View file @
e2548095
...
...
@@ -56,10 +56,13 @@ typedef struct _mp_obj_gen_instance_t {
const
byte
*
code_info
;
const
byte
*
ip
;
mp_obj_t
*
sp
;
// bit 0 is saved currently_in_except_block value
mp_exc_stack
*
exc_sp
;
uint
n_state
;
mp_obj_t
state
[
0
];
// Variable-length
mp_exc_stack
exc_state
[
0
];
// Variable-length
// Variable-length
mp_obj_t
state
[
0
];
// Variable-length, never accessed by name, only as (void*)(state + n_state)
mp_exc_stack
exc_state
[
0
];
}
mp_obj_gen_instance_t
;
void
gen_instance_print
(
void
(
*
print
)(
void
*
env
,
const
char
*
fmt
,
...),
void
*
env
,
mp_obj_t
self_in
,
mp_print_kind_t
kind
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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