blueloveTH hace 3 años
padre
commit
ee6286250d
Se han modificado 2 ficheros con 4 adiciones y 3 borrados
  1. 2 1
      src/codeobject.h
  2. 2 2
      src/main.cpp

+ 2 - 1
src/codeobject.h

@@ -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;
         }

+ 2 - 2
src/main.cpp

@@ -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;