Browse Source

spod_macro support

Nicolas Cannasse 14 năm trước cách đây
mục cha
commit
a5464084b6
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      std/haxe/web/Dispatch.hx

+ 4 - 0
std/haxe/web/Dispatch.hx

@@ -134,7 +134,11 @@ class Dispatch {
 			if( v == null ) throw DEInvalidValue;
 			var cl = Type.resolveClass(c);
 			if( cl == null ) throw "assert";
+			#if spod_macro
+			return untyped cl.manager.unsafeGet(v, lock);
+			#else
 			return untyped cl.manager.get(v, lock);
+			#end
 		}
 	}