From cd57c0376145ebcd186e971d0f9363f5d3026034 Mon Sep 17 00:00:00 2001 From: wrenge Date: Fri, 13 Oct 2023 16:50:00 +0300 Subject: [PATCH] bhl static struct methods --- tpl/macro.twig | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tpl/macro.twig b/tpl/macro.twig index 0dcf728..f6b1d62 100644 --- a/tpl/macro.twig +++ b/tpl/macro.twig @@ -642,7 +642,11 @@ Script_{{o.name|norm_name}}.Method_{{m.name}}.ReturnValue(frm, stack {% for m in o.getfuncs %} {% if has_token(m, 'bhl_native_prefix') %} - {{ _self.reg_func_native(m, 'cl', '__self.', o) }} + {% if has_token(m, 'bhl_static') %} + {{ _self.reg_func_native(m, 'cl', '', o) }} + {% else %} + {{ _self.reg_func_native(m, 'cl', '__self.', o) }} + {% endif %} {% else %} {{ _self.method_partial(o, m, 'cl') }} {% endif %}