Skip to content
Snippets Groups Projects
Commit e2548095 authored by Damien George's avatar Damien George
Browse files

Merge branch 'master' of github.com:micropython/micropython

parents 908a670d 8dc768b9
No related branches found
No related tags found
No related merge requests found
...@@ -56,10 +56,13 @@ typedef struct _mp_obj_gen_instance_t { ...@@ -56,10 +56,13 @@ typedef struct _mp_obj_gen_instance_t {
const byte *code_info; const byte *code_info;
const byte *ip; const byte *ip;
mp_obj_t *sp; mp_obj_t *sp;
// bit 0 is saved currently_in_except_block value
mp_exc_stack *exc_sp; mp_exc_stack *exc_sp;
uint n_state; uint n_state;
mp_obj_t state[0]; // Variable-length // Variable-length
mp_exc_stack exc_state[0]; // 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; } 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) { void gen_instance_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t self_in, mp_print_kind_t kind) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment