Forráskód Böngészése

[lua] add Lua.require extern

Justin Donaldson 9 éve
szülő
commit
6dc9a89a13
1 módosított fájl, 2 hozzáadás és 0 törlés
  1. 2 0
      std/lua/Lua.hx

+ 2 - 0
std/lua/Lua.hx

@@ -67,6 +67,8 @@ extern class Lua {
 
 	public static function pairs<A,B>(t:Table<A,B>): Void->A;
 
+	public static function require(module:String) : Dynamic;
+
 	/**
 		Converts the Lua value at the given acceptable base to `Int`. 
 		The Lua value must be a number or a string convertible to a number,