Sfoglia il codice sorgente

[lua] fix missing end expression

Justin Donaldson 9 anni fa
parent
commit
c262f4e9b9
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      src/generators/genlua.ml

+ 2 - 1
src/generators/genlua.ml

@@ -1935,10 +1935,11 @@ let generate com =
 	if has_feature ctx "use._hx_print" then
 	    println ctx "_hx_print = print or (function() end)";
 
-	if has_feature ctx "use._hx_apply_self" then
+	if has_feature ctx "use._hx_apply_self" then begin
 	    println ctx "_hx_apply_self = function(self, f, ...)";
 	    println ctx "  return self[f](self,...)";
 	    println ctx "end";
+	end;
 
 
 	List.iter (generate_enumMeta_fields ctx) com.types;