@@ -22,8 +22,6 @@
package lua;
class Boot {
- public static var unpack : Dynamic->Table<Int,Dynamic> = untyped __lua__("function(...) return {...} end");
-
static function __unhtml(s : String) {
return s.split("&").join("&").split("<").join("<").split(">").join(">");
}
@@ -0,0 +1,12 @@
+package lua;
+
+/**
+ These are all global static methods within lua
+**/
+@:native("_G")
+extern Lua {
+ public static function unpack : Dynamic->Table<Int,Dynamic>;
+ public static function setmetatable : Table->Table->Void;
+ public static function setfenv : Int->Table->Void;
+}