瀏覽代碼

Lua : fix _estr

Justin Donaldson 9 年之前
父節點
當前提交
755eb2b172
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      genlua.ml

+ 1 - 1
genlua.ml

@@ -1665,7 +1665,7 @@ let generate com =
 	let vars = [] in
 	(* let vars = (if has_feature ctx "Type.resolveClass" || has_feature ctx "Type.resolveEnum" then ("_hxClasses = " ^ "{}") :: vars else vars) in *)
 	let vars = if has_feature ctx "may_print_enum"
-		then ("_estr = function()  return " ^ (ctx.type_accessor (TClassDecl { null_class with cl_path = ["lua"],"Boot" })) ^ ".__string_rec(self,''); end") :: vars
+		then ("_estr = function(self)  return " ^ (ctx.type_accessor (TClassDecl { null_class with cl_path = ["lua"],"Boot" })) ^ ".__string_rec(self,''); end") :: vars
 		else vars in
 	(match List.rev vars with
 	| [] -> ()