From 425cd7393604a139c615fc9c867cc8196d67e86c Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Wed, 24 May 2023 14:34:27 +0300 Subject: [PATCH] Keeping BC and making it more flexible: Register(..) now calls RegisterBegin(..) and RegisterEnd(..) --- tpl/codegen_autobind.twig | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tpl/codegen_autobind.twig b/tpl/codegen_autobind.twig index 8716bf7..9267023 100644 --- a/tpl/codegen_autobind.twig +++ b/tpl/codegen_autobind.twig @@ -29,11 +29,17 @@ static public class Types_{{u.object.name|norm_name}} { static public class {{register_class}} { public static void Register(Types types) +{ + RegisterBegin(types); + RegisterEnd(types); +} + +public static void RegisterBegin(Types types) { {{ macro.call_reg_units(slice_units(meta.units, 20)) }} } -public static void Setup(Types types) +public static void RegisterEnd(Types types) { {{ macro.setup_global_types(meta.units) }} }