Explorar o código

Lua: Make NativeIterator callable

Justin Donaldson %!s(int64=9) %!d(string=hai) anos
pai
achega
acb19f190d
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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);