diff --git a/hscript/macros/AbstractHandler.hx b/hscript/macros/AbstractHandler.hx index 58d3d05..6b97832 100644 --- a/hscript/macros/AbstractHandler.hx +++ b/hscript/macros/AbstractHandler.hx @@ -12,12 +12,14 @@ using StringTools; class AbstractHandler { public static function init() { + #if HSCRIPT_ABSTRACT_SUPPORT #if !display if(Context.defined("display")) return; for(apply in Config.ALLOWED_ABSTRACT_AND_ENUM) { Compiler.addGlobalMetadata(apply, '@:build(hscript.macros.AbstractHandler.build())'); } #end + #end } public static function build():Array {