소스 검색

make haxe.web.Request #error if on a bad target (closes #5535)

Simon Krajewski 9 년 전
부모
커밋
e8d92e7479
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      std/haxe/web/Request.hx

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

@@ -21,6 +21,10 @@
  */
 package haxe.web;
 
+#if (!neko && !php && !js)
+#error "Not supported on this target"
+#end
+
 class Request {
 
 	/**