瀏覽代碼

Lua: Make NativeIterator callable

Justin Donaldson 9 年之前
父節點
當前提交
acb19f190d
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      std/lua/NativeIterator.hx

+ 2 - 0
std/lua/NativeIterator.hx

@@ -27,6 +27,8 @@ package lua;
 	(i.e., a function that is called until it returns null), and 
 	Haxe iterators, which provide a next/hasNext interface.
 **/
+
+@:callable
 abstract NativeIterator<T>(HaxeIterator<T>) {
 	public function new(f : Void->T) {
 		this = new HaxeIterator(f);