diff --git a/src/lime/_internal/macros/AssetsMacro.hx b/src/lime/_internal/macros/AssetsMacro.hx index 0323d9ed53..a5b403ee86 100644 --- a/src/lime/_internal/macros/AssetsMacro.hx +++ b/src/lime/_internal/macros/AssetsMacro.hx @@ -28,6 +28,9 @@ class AssetsMacro macro public static function embedBytes():Array { + var fields = embedData(":file"); + if (fields == null) return null; + for (autoBuild in Context.getLocalClass().get().meta.extract(":autoBuild")) { switch (autoBuild.params[0]) @@ -38,9 +41,6 @@ class AssetsMacro } } - var fields = embedData(":file"); - if (fields == null) return null; - var superCall = Context.defined("html5") ? macro super(bytes.b.buffer) : Context.defined("hl") ? macro super(bytes.b, bytes.length) : macro super(bytes.length, bytes.b);