Explorar o código

使用__init方法和修复了call class的bug

Huan %!s(int64=5) %!d(string=hai) anos
pai
achega
af2d382aba
Modificáronse 2 ficheiros con 4 adicións e 0 borrados
  1. BIN=BIN
      gwarf
  2. 4 0
      gwarf_interpreter/interpreter.c

BIN=BIN
gwarf


+ 4 - 0
gwarf_interpreter/interpreter.c

@@ -1300,6 +1300,10 @@ GWARF_result call_back(statement *the_statement, var_list *the_var){  // the fun
             puts("----stop start func----");
             the_var = free_var_list(the_var);  // free the new var
         }
+        // 记录返回值
+        result.u = return_def;
+        result.value = tmp;
+
     }
     return result;
 }