Browse Source

Lua : add lua.Lua.tonumber

Justin Donaldson 10 years ago
parent
commit
20fb84b9f8
1 changed files with 1 additions and 0 deletions
  1. 1 0
      std/lua/Lua.hx

+ 1 - 0
std/lua/Lua.hx

@@ -13,4 +13,5 @@ extern class Lua {
 	public static function tostring(v: Dynamic): String;
 	public static function ipairs<T>(t: Table<Int,T>): Void->T;
 	public static function pairs<A,B>(t: Table<A,B>): Void->A;
+	public static function tonumber(str:String, base:Int): Int;
 }