소스 검색

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);