2
0
Эх сурвалжийг харах

Lua: Io needs the _G prefix for native requires

Justin Donaldson 9 жил өмнө
parent
commit
41f069482c
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      std/lua/Io.hx

+ 1 - 1
std/lua/Io.hx

@@ -1,7 +1,7 @@
 package lua;
 import haxe.extern.Rest;
 
-@:native("io")
+@:native("_G.io")
 extern class Io {
 	public static function close(?file : FileHandle) : Void;
 	public static function flush() : Void;