Browse Source

[lua] add Lua.require extern

Justin Donaldson 9 years ago
parent
commit
6dc9a89a13
1 changed files with 2 additions and 0 deletions
  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 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`. 
 		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, 
 		The Lua value must be a number or a string convertible to a number,