py/objgenerator: Move defn of mp_const_GeneratorExit_obj here.

Because the mp_obj_exception_t type is now globally available.
This commit is contained in:
Damien George
2019-08-22 16:05:05 +10:00
parent bc9b656f35
commit 973c87d8fa
2 changed files with 3 additions and 5 deletions

View File

@@ -34,6 +34,9 @@
#include "py/objfun.h"
#include "py/stackctrl.h"
// Instance of GeneratorExit exception - needed by generator.close()
const mp_obj_exception_t mp_const_GeneratorExit_obj = {{&mp_type_GeneratorExit}, 0, 0, NULL, (mp_obj_tuple_t*)&mp_const_empty_tuple_obj};
/******************************************************************************/
/* generator wrapper */