|
@@ -26,7 +26,7 @@ import haxe.macro.Context;
|
|
|
|
|
|
class ImportAll {
|
|
|
|
|
|
- public static function run( ?pack ) {
|
|
|
+ public static function run( ?pack ) {
|
|
|
if( pack == null ) {
|
|
|
pack = "";
|
|
|
haxe.macro.Compiler.define("doc_gen");
|
|
@@ -73,6 +73,7 @@ class ImportAll {
|
|
|
switch( cl ) {
|
|
|
case "ImportAll", "neko.db.MacroManager": continue;
|
|
|
case "haxe.TimerQueue": if( Context.defined("neko") || Context.defined("php") || Context.defined("cpp") ) continue;
|
|
|
+ case "Sys": if( !(Context.defined("neko") || Context.defined("php") || Context.defined("cpp")) ) continue;
|
|
|
case "haxe.web.Request": if( !(Context.defined("neko") || Context.defined("php") || Context.defined("js")) ) continue;
|
|
|
case "haxe.macro.ExampleJSGenerator","haxe.macro.Context", "haxe.macro.Compiler": if( !Context.defined("neko") ) continue;
|
|
|
case "haxe.remoting.SocketWrapper": if( !Context.defined("flash") ) continue;
|