diff --git a/tpl/macro.twig b/tpl/macro.twig index 11bed7e..925950b 100644 --- a/tpl/macro.twig +++ b/tpl/macro.twig @@ -684,7 +684,7 @@ Script_{{o.name|norm_name}}.Method_{{m.name}}.ReturnValue(frm, stack {%- macro reg_interface(o, scope = 'types.ns') ~%} { - var ifs = new InterfaceSymbolNative("{{o.name|ns_last}}", null + var ifs = new InterfaceSymbolNative(new Origin(), "{{o.name|ns_last}}", null {% for m in o.getfuncs %} , new FuncSymbolNative(new Origin(), "{{m.name}}", {{m.returntype|bhl_type_ref}}, 0, null) @@ -692,6 +692,7 @@ Script_{{o.name|norm_name}}.Method_{{m.name}}.ReturnValue(frm, stack {% endfor %} ); + ifs.Setup(); {{scope}}.{{o.name|ns_prefix}}Define(ifs); }