Sfoglia il codice sorgente

fix: 修复守护器测试程序的问题

守护器测试程序只有每一次执行时都打印提示信息
SongZihuan 3 anni fa
parent
commit
afb9f253d5
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      test/src/run_code.c

+ 2 - 1
test/src/run_code.c

@@ -380,6 +380,8 @@ struct GDData {
 };
 
 af_GuardianList *gd_func(char *type, bool is_guard, struct GDData *data, af_Environment *env) {
+    printf("gd_func:run-Guardian-func\n");
+
     if (data->no_first)
         return NULL;
 
@@ -387,7 +389,6 @@ af_GuardianList *gd_func(char *type, bool is_guard, struct GDData *data, af_Envi
     data->no_first = true;
     gc_addReference(data->func, env);  // data->func 本身有一次gc引用, 此次再使用一次gc引用, gd_destruct和freeGuardianList时各释放一次
 
-    printf("gd_func:run-Guardian-func\n");
     pushGuardianList(NULL, data->func, &gd, env);
     return gd;
 }