فهرست منبع

[lua] add Lua.require extern

Justin Donaldson 9 سال پیش
والد
کامیت
6dc9a89a13
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  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,