Improving support for native enum types
This commit is contained in:
parent
f9f382c23d
commit
7f6966f113
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue