Merge branch 'fix'

This commit is contained in:
Pavel Shevaev 2023-05-23 12:54:44 +03:00
commit e45ed9da91
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}