Selaa lähdekoodia

[lua] generate "generated by Haxe" header comment for lua output (closes #5325)

Dan Korostelev 9 vuotta sitten
vanhempi
commit
7b81dea681
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      src/generators/genlua.ml

+ 2 - 0
src/generators/genlua.ml

@@ -1719,6 +1719,8 @@ let generate com =
 	let t = Common.timer "generate lua" in
 	let ctx = alloc_ctx com in
 
+	Codegen.map_source_header com (fun s -> print ctx "-- %s\n" s);
+
 	if has_feature ctx "Class" || has_feature ctx "Type.getClassName" then add_feature ctx "lua.Boot.isClass";
 	if has_feature ctx "Enum" || has_feature ctx "Type.getEnumName" then add_feature ctx "lua.Boot.isEnum";