This commit is contained in:
blueloveTH 2022-12-05 04:09:26 +08:00
parent 55f92468c8
commit ee6286250d
2 changed files with 4 additions and 3 deletions

View File

@ -57,7 +57,8 @@ struct CodeObject {
co_labels[label] = co_code.size();
}
int addName(const _Str& name, NameScope scope){
int addName(_Str name, NameScope scope){
name.intern();
if(scope == NAME_LOCAL && std::find(co_global_names.begin(), co_global_names.end(), name) != co_global_names.end()){
scope = NAME_GLOBAL;
}

View File

@ -2,8 +2,8 @@
#include "pocketpy.h"
//#define PK_DEBUG_TIME
#define PK_DEBUG_THREADED
#define PK_DEBUG_TIME
//#define PK_DEBUG_THREADED
struct Timer{
const char* title;