Browse Source

fix xmldoc

Aurel Bílý 6 years ago
parent
commit
a229959a30
1 changed files with 6 additions and 0 deletions
  1. 6 0
      extra/ImportAll.hx

+ 6 - 0
extra/ImportAll.hx

@@ -29,6 +29,10 @@ class ImportAll {
 		       Context.defined("lua") || Context.defined("hl") || Context.defined("eval"); // TODO: have to add cs here, SPOD gets in the way at the moment
 		       Context.defined("lua") || Context.defined("hl") || Context.defined("eval"); // TODO: have to add cs here, SPOD gets in the way at the moment
 	}
 	}
 
 
+	static function isAsysTarget() {
+		return Context.defined("eval"); // TODO: expand as more targets are integrated
+	}
+
 	public static function run( ?pack ) {
 	public static function run( ?pack ) {
 		if( pack == null ) {
 		if( pack == null ) {
 			pack = "";
 			pack = "";
@@ -52,6 +56,8 @@ class ImportAll {
 			return;
 			return;
 		case "sys":
 		case "sys":
 			if(!isSysTarget()) return;
 			if(!isSysTarget()) return;
+		case "asys":
+			if(!isAsysTarget()) return;
 		case "sys.thread":
 		case "sys.thread":
 			if ( !Context.defined("target.threaded") ) return;
 			if ( !Context.defined("target.threaded") ) return;
 		case "java":
 		case "java":