diff --git a/tpl/macro.twig b/tpl/macro.twig index b6a62f5..bb114db 100644 --- a/tpl/macro.twig +++ b/tpl/macro.twig @@ -560,7 +560,13 @@ Script_{{o.name|norm_name}}.Method_{{m.name}}.ReturnValue(frm, stack {%- macro reg_enum(o, scope = 'types.ns') ~%} { - var en = new EnumSymbol(new Origin(), "{{o.name|ns_last}}"); + var en = new EnumSymbolNative(new Origin(), "{{o.name|ns_last}}" +#if !BHL_FRONT + , typeof({{o.name}}) +#else + , null +#endif + ); {{scope}}.{{o.name|ns_prefix}}Define(en);